mirror of
https://github.com/Naios/continuable.git
synced 2025-12-08 01:36:46 +08:00
28 lines
700 B
CMake
28 lines
700 B
CMake
set(INCLUDE_DIR ${CMAKE_SOURCE_DIR}/include/continuable)
|
|
|
|
file(GLOB LIB_SOURCES ${INCLUDE_DIR}/*.hpp)
|
|
file(GLOB_RECURSE LIB_SOURCES_DETAIL ${INCLUDE_DIR}/detail/*.hpp)
|
|
|
|
set(TEST
|
|
${CMAKE_CURRENT_LIST_DIR}/test-playground.cpp)
|
|
|
|
add_executable(test-playground
|
|
${LIB_SOURCES}
|
|
${LIB_SOURCES_DETAIL}
|
|
${TEST})
|
|
|
|
source_group(continuable FILES ${LIB_SOURCES})
|
|
source_group(continuable\\detail FILES ${LIB_SOURCES_DETAIL})
|
|
source_group(test FILES ${TEST})
|
|
|
|
target_link_libraries(test-playground
|
|
PRIVATE
|
|
gtest
|
|
continuable
|
|
continuable-features-flags
|
|
continuable-features-warnings
|
|
continuable-features-noexcept)
|
|
|
|
add_test(NAME continuable-playground-tests
|
|
COMMAND test-playground)
|