aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
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/unit
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/unit')
-rw-r--r--tests/unit/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt
index a8c462b82..a18ea18e0 100644
--- a/tests/unit/CMakeLists.txt
+++ b/tests/unit/CMakeLists.txt
@@ -58,7 +58,8 @@ include_directories(
foreach(_testfile ${UT_SRC})
get_filename_component(_testname ${_testfile} NAME_WE)
- add_executable(${_testname} ${_testfile} ${UT_COMMON_FILES})
+ add_executable(${_testname} EXCLUDE_FROM_ALL ${_testfile} ${UT_COMMON_FILES})
+ #add_dependencies(testdeps ${_testname})
target_link_libraries(${_testname} libcurl ${CURL_LIBS})
set_target_properties(${_testname}
PROPERTIES COMPILE_DEFINITIONS "UNITTESTS")