mirror of
https://github.com/curl/curl.git
synced 2026-08-26 09:13:32 +03:00
CMake: do not build test programs by default
The default target should only build libcurl and curl. Add a dedicated 'testdeps' target which will be used later when running tests. Note that unittests are currently broken in CMake and already excluded. Closes #5368
This commit is contained in:
parent
90bbfb5136
commit
c2ab2494ef
4 changed files with 9 additions and 4 deletions
|
|
@ -26,7 +26,8 @@ if(MSVC)
|
|||
endif()
|
||||
|
||||
function(SETUP_EXECUTABLE TEST_NAME) # ARGN are the files in the test
|
||||
add_executable(${TEST_NAME} ${ARGN})
|
||||
add_executable(${TEST_NAME} EXCLUDE_FROM_ALL ${ARGN})
|
||||
add_dependencies(testdeps ${TEST_NAME})
|
||||
string(TOUPPER ${TEST_NAME} UPPER_TEST_NAME)
|
||||
|
||||
include_directories(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue