aboutsummaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2020-05-10 02:10:20 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-05-12 08:50:07 +0200
commitc2ab2494ef375bfc5d621b39badabeb9a0c86f6a (patch)
treedf1bbfc79ab9a368b4f1ec428c07acee4b7f874f /tests/server
parent90bbfb5136425ab59516c8dcaabefb54b6c56d2b (diff)
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
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/server/CMakeLists.txt b/tests/server/CMakeLists.txt
index 7c64f0a8d..3bfa64921 100644
--- a/tests/server/CMakeLists.txt
+++ b/tests/server/CMakeLists.txt
@@ -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(