Skip to content

Commit

Permalink
Merge 4956ff5 into dfe0fc7
Browse files Browse the repository at this point in the history
  • Loading branch information
offa committed May 11, 2020
2 parents dfe0fc7 + 4956ff5 commit f43c07e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -70,6 +70,7 @@ option(WERROR "Compile with warnings as errors" OFF)

option(TESTS "Compile and make tests for the code?" ON)
option(TESTS_DETAILED "Run each test separately instead of grouped?" OFF)
option(TESTS_BUILD_DISCOVER "Build time test discover" ON)

option(EXAMPLES "Compile and make exaples?" OFF)

Expand Down
4 changes: 3 additions & 1 deletion tests/CppUTest/CMakeLists.txt
Expand Up @@ -55,4 +55,6 @@ add_executable(CppUTestTests ${CppUTestTests_src})
cpputest_normalize_test_output_location(CppUTestTests)
target_link_libraries(CppUTestTests CppUTest ${THREAD_LIB})

cpputest_buildtime_discover_tests(CppUTestTests)
if (TESTS_BUILD_DISCOVER)
cpputest_buildtime_discover_tests(CppUTestTests)
endif()
5 changes: 4 additions & 1 deletion tests/CppUTestExt/CMakeLists.txt
Expand Up @@ -37,4 +37,7 @@ endif (MINGW)
add_executable(CppUTestExtTests ${CppUTestExtTests_src})
cpputest_normalize_test_output_location(CppUTestExtTests)
target_link_libraries(CppUTestExtTests CppUTest CppUTestExt ${THREAD_LIB} ${CPPUNIT_EXTERNAL_LIBRARIES})
cpputest_buildtime_discover_tests(CppUTestExtTests)

if (TESTS_BUILD_DISCOVER)
cpputest_buildtime_discover_tests(CppUTestExtTests)
endif()

0 comments on commit f43c07e

Please sign in to comment.