mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 11:39:01 +08:00
50c0b41fe4
* Update clue to 1.0.0 * Update CI baseline * Address PR feedback * Update git-tree hash * Update ports/clue/portfile.cmake * Small changes for copyright Co-authored-by: chausner <chausner@users.noreply.github.com> Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
25 lines
829 B
CMake
25 lines
829 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
|
|
project(clue VERSION 1.0.0 LANGUAGES CXX)
|
|
|
|
option(CLUE_BUILD_TEST "Build tests for clue" OFF)
|
|
option(CLUE_BUILD_EXAMPLE "Build examples" OFF)
|
|
|
|
include(GNUInstallDirs)
|
|
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include/clue.hpp")
|
|
|
|
if(CLUE_BUILD_TEST)
|
|
file(GLOB TEST_SOURCES "tests/*.cpp")
|
|
add_executable(test_clue ${TEST_SOURCES})
|
|
target_include_directories(test_clue PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" "${CMAKE_CURRENT_SOURCE_DIR}/tests")
|
|
install(TARGETS test_clue
|
|
RUNTIME DESTINATION tools)
|
|
endif()
|
|
|
|
if(CLUE_BUILD_EXAMPLE)
|
|
file(GLOB EXAMPLES "examples/*.cpp")
|
|
install(FILES ${EXAMPLES} DESTINATION examples)
|
|
endif()
|
|
|
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/clue.hpp" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
|
# end of file |