Commit 2b40b8cbd3e4862dc0f02adb75ae2741c7e07296
1 parent
1f510725
Removing automatic testing with single file, kept on travis
Showing
3 changed files
with
4 additions
and
4 deletions
.ci/travis.sh
CMakeLists.txt
| ... | ... | @@ -40,6 +40,8 @@ if(CLI_SINGLE_FILE) |
| 40 | 40 | target_include_directories(CLI_SINGLE INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/include/") |
| 41 | 41 | endif() |
| 42 | 42 | |
| 43 | +option(CLI_SINGLE_FILE_TESTS "Duplicate all the tests for a single file build" OFF) | |
| 44 | + | |
| 43 | 45 | option(CLI_TESTING "Build the tests and add them" ${CUR_PROJ}) |
| 44 | 46 | if(CLI_TESTING) |
| 45 | 47 | enable_testing() | ... | ... |
tests/CMakeLists.txt
| ... | ... | @@ -17,12 +17,10 @@ foreach(T ${CLI_TESTS}) |
| 17 | 17 | target_link_libraries(${T} PUBLIC CLI) |
| 18 | 18 | add_gtest(${T}) |
| 19 | 19 | |
| 20 | - if(CLI_SINGLE_FILE) | |
| 21 | - | |
| 20 | + if(CLI_SINGLE_FILE AND CLI_SINGLE_FILE_TESTS) | |
| 22 | 21 | add_executable(${T}_Single ${T}.cpp) |
| 23 | 22 | target_link_libraries(${T}_Single PUBLIC CLI_SINGLE) |
| 24 | 23 | add_gtest(${T}_Single) |
| 25 | - | |
| 26 | 24 | endif() |
| 27 | 25 | |
| 28 | 26 | endforeach() | ... | ... |