continuable/test/playground/CMakeLists.txt
2018-03-12 09:36:15 +01:00

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)