Commit f5ee09a3 authored by Kirk Shoop's avatar Kirk Shoop Committed by Facebook Github Bot

skip catch_discover_tests on older cmake versions

fbshipit-source-id: 5552aa10e9abdf6091bfe77fe802f2cd26d50d32
parent 0f0583e4
...@@ -3,24 +3,29 @@ target_include_directories(catch PUBLIC ...@@ -3,24 +3,29 @@ target_include_directories(catch PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../external/Catch2/single_include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../external/Catch2/single_include>
$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include/Catch2>) $<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include/Catch2>)
include(../external/Catch2/contrib/Catch.cmake)
add_executable(FlowTest FlowTest.cpp) add_executable(FlowTest FlowTest.cpp)
target_link_libraries(FlowTest pushmi catch Threads::Threads) target_link_libraries(FlowTest pushmi catch Threads::Threads)
catch_discover_tests(FlowTest)
add_executable(CompileTest CompileTest.cpp) add_executable(CompileTest CompileTest.cpp)
target_link_libraries(CompileTest pushmi catch Threads::Threads) target_link_libraries(CompileTest pushmi catch Threads::Threads)
# catch_discover_tests(CompileTest)
add_executable(NewThreadTest NewThreadTest.cpp) add_executable(NewThreadTest NewThreadTest.cpp)
target_link_libraries(NewThreadTest pushmi catch Threads::Threads) target_link_libraries(NewThreadTest pushmi catch Threads::Threads)
catch_discover_tests(NewThreadTest)
add_executable(TrampolineTest TrampolineTest.cpp) add_executable(TrampolineTest TrampolineTest.cpp)
target_link_libraries(TrampolineTest pushmi catch Threads::Threads) target_link_libraries(TrampolineTest pushmi catch Threads::Threads)
catch_discover_tests(TrampolineTest)
add_executable(PushmiTest PushmiTest.cpp) add_executable(PushmiTest PushmiTest.cpp)
target_link_libraries(PushmiTest pushmi catch Threads::Threads) target_link_libraries(PushmiTest pushmi catch Threads::Threads)
if(NOT ${CMAKE_VERSION} VERSION_LESS "3.10.0")
include(../external/Catch2/contrib/Catch.cmake)
catch_discover_tests(FlowTest)
# catch_discover_tests(CompileTest)
catch_discover_tests(NewThreadTest)
catch_discover_tests(TrampolineTest)
catch_discover_tests(PushmiTest) catch_discover_tests(PushmiTest)
endif()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment