From d1207c07d0cc3c7870e50865052bb59850917ec9 Mon Sep 17 00:00:00 2001 From: Ruslan Baratov Date: Tue, 17 Jul 2018 09:36:59 +0300 Subject: CMake: Update scripts to use consistent style Closes #2727 Reviewed-by: Sergei Nikulov --- tests/libtest/CMakeLists.txt | 4 ++-- tests/server/CMakeLists.txt | 2 +- tests/unit/CMakeLists.txt | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tests') 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" -- cgit v1.2.3