1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-05-01 13:13:53 +00:00

Removing automatic testing with single file, kept on travis

This commit is contained in:
Henry Fredrick Schreiner 2017-02-14 12:26:07 -05:00
parent 1f510725e5
commit 2b40b8cbd3
3 changed files with 4 additions and 4 deletions

View File

@ -4,6 +4,6 @@ env | sort
mkdir build || true
cd build
cmake ..
cmake .. -DCLI_SINGLE_FILE_TESTS=ON
make
CTEST_OUTPUT_ON_FAILURE=1 make test

View File

@ -40,6 +40,8 @@ if(CLI_SINGLE_FILE)
target_include_directories(CLI_SINGLE INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/include/")
endif()
option(CLI_SINGLE_FILE_TESTS "Duplicate all the tests for a single file build" OFF)
option(CLI_TESTING "Build the tests and add them" ${CUR_PROJ})
if(CLI_TESTING)
enable_testing()

View File

@ -17,12 +17,10 @@ foreach(T ${CLI_TESTS})
target_link_libraries(${T} PUBLIC CLI)
add_gtest(${T})
if(CLI_SINGLE_FILE)
if(CLI_SINGLE_FILE AND CLI_SINGLE_FILE_TESTS)
add_executable(${T}_Single ${T}.cpp)
target_link_libraries(${T}_Single PUBLIC CLI_SINGLE)
add_gtest(${T}_Single)
endif()
endforeach()