diff options
Diffstat (limited to 'tests/unit/CMakeLists.txt')
| -rw-r--r-- | tests/unit/CMakeLists.txt | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index a8c462b8..e5c4127a 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -20,6 +20,9 @@ # ########################################################################### +# TODO build a special libcurlu library for unittests. +return() + set(UT_SRC unit1300.c unit1301.c @@ -58,20 +61,9 @@ 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") - - if(HIDES_CURL_PRIVATE_SYMBOLS) - set_target_properties(${_testname} - PROPERTIES - EXCLUDE_FROM_ALL TRUE - EXCLUDE_FROM_DEFAULT_BUILD TRUE - ) - else() - add_test(NAME ${_testname} - COMMAND ${_testname} "http://www.google.com" - ) - endif() endforeach() |
