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:
parent
1f510725e5
commit
2b40b8cbd3
@ -4,6 +4,6 @@ env | sort
|
|||||||
|
|
||||||
mkdir build || true
|
mkdir build || true
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake .. -DCLI_SINGLE_FILE_TESTS=ON
|
||||||
make
|
make
|
||||||
CTEST_OUTPUT_ON_FAILURE=1 make test
|
CTEST_OUTPUT_ON_FAILURE=1 make test
|
||||||
|
@ -40,6 +40,8 @@ if(CLI_SINGLE_FILE)
|
|||||||
target_include_directories(CLI_SINGLE INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/include/")
|
target_include_directories(CLI_SINGLE INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/include/")
|
||||||
endif()
|
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})
|
option(CLI_TESTING "Build the tests and add them" ${CUR_PROJ})
|
||||||
if(CLI_TESTING)
|
if(CLI_TESTING)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
@ -17,12 +17,10 @@ foreach(T ${CLI_TESTS})
|
|||||||
target_link_libraries(${T} PUBLIC CLI)
|
target_link_libraries(${T} PUBLIC CLI)
|
||||||
add_gtest(${T})
|
add_gtest(${T})
|
||||||
|
|
||||||
if(CLI_SINGLE_FILE)
|
if(CLI_SINGLE_FILE AND CLI_SINGLE_FILE_TESTS)
|
||||||
|
|
||||||
add_executable(${T}_Single ${T}.cpp)
|
add_executable(${T}_Single ${T}.cpp)
|
||||||
target_link_libraries(${T}_Single PUBLIC CLI_SINGLE)
|
target_link_libraries(${T}_Single PUBLIC CLI_SINGLE)
|
||||||
add_gtest(${T}_Single)
|
add_gtest(${T}_Single)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endforeach()
|
endforeach()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user