diff options
author | Ruslan Baratov <ruslan_baratov@yahoo.com> | 2018-07-17 09:36:59 +0300 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-07-17 11:54:07 +0200 |
commit | d1207c07d0cc3c7870e50865052bb59850917ec9 (patch) | |
tree | 368eff237870038b10ba601eaddcf4c89b97ad03 /tests | |
parent | a82372e0fb3aa3ce9ab27687c4d4a738a6ec9064 (diff) | |
download | curl-d1207c07d0cc3c7870e50865052bb59850917ec9.tar.gz |
CMake: Update scripts to use consistent style
Closes #2727
Reviewed-by: Sergei Nikulov
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libtest/CMakeLists.txt | 4 | ||||
-rw-r--r-- | tests/server/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tests/unit/CMakeLists.txt | 8 |
3 files changed, 7 insertions, 7 deletions
diff --git a/tests/libtest/CMakeLists.txt b/tests/libtest/CMakeLists.txt index bea8d60c8..bf2bc5e7e 100644 --- a/tests/libtest/CMakeLists.txt +++ b/tests/libtest/CMakeLists.txt @@ -1,6 +1,6 @@ set(TARGET_LABEL_PREFIX "Test ") -function(SETUP_TEST TEST_NAME) # ARGN are the files in the test +function(setup_test TEST_NAME) # ARGN are the files in the test add_executable( ${TEST_NAME} ${ARGN} ) string(TOUPPER ${TEST_NAME} UPPER_TEST_NAME) @@ -14,7 +14,7 @@ function(SETUP_TEST TEST_NAME) # ARGN are the files in the test include_directories(${CARES_INCLUDE_DIR}) endif() - target_link_libraries( ${TEST_NAME} libcurl ${CURL_LIBS}) + target_link_libraries(${TEST_NAME} libcurl ${CURL_LIBS}) set_target_properties(${TEST_NAME} PROPERTIES COMPILE_DEFINITIONS ${UPPER_TEST_NAME}) diff --git a/tests/server/CMakeLists.txt b/tests/server/CMakeLists.txt index 59716fbb3..9b5714d20 100644 --- a/tests/server/CMakeLists.txt +++ b/tests/server/CMakeLists.txt @@ -5,7 +5,7 @@ if(MSVC) endif() function(SETUP_EXECUTABLE TEST_NAME) # ARGN are the files in the test - add_executable( ${TEST_NAME} ${ARGN} ) + add_executable(${TEST_NAME} ${ARGN}) string(TOUPPER ${TEST_NAME} UPPER_TEST_NAME) include_directories( diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index a29991215..3c0a6c62d 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -42,10 +42,10 @@ foreach(_testfile ${UT_SRC}) if(HIDES_CURL_PRIVATE_SYMBOLS) set_target_properties(${_testname} - PROPERTIES - EXCLUDE_FROM_ALL TRUE - EXCLUDE_FROM_DEFAULT_BUILD TRUE - ) + PROPERTIES + EXCLUDE_FROM_ALL TRUE + EXCLUDE_FROM_DEFAULT_BUILD TRUE + ) else() add_test(NAME ${_testname} COMMAND ${_testname} "http://www.google.com" |