summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-10-30 13:23:01 (GMT)
committerBrad King <brad.king@kitware.com>2014-11-10 15:13:38 (GMT)
commit10d80b68e426abbe43c200bc3f29e05c12e01964 (patch)
tree6ccc16cae6ba55d8a1dc0381596fd13dace9a7c6 /Utilities
parent19593042959274fab45f6bc0ef77d6ddc4532a0f (diff)
downloadCMake-10d80b68e426abbe43c200bc3f29e05c12e01964.zip
CMake-10d80b68e426abbe43c200bc3f29e05c12e01964.tar.gz
CMake-10d80b68e426abbe43c200bc3f29e05c12e01964.tar.bz2
curl: Restore CMake-specific test and install code
Restore the LIBCURL test used previously within CMake. Restore installation of the 'COPYING' file with the CMake documentation.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmcurl/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt
index f37cd0b..d42cddf 100644
--- a/Utilities/cmcurl/CMakeLists.txt
+++ b/Utilities/cmcurl/CMakeLists.txt
@@ -908,6 +908,18 @@ if(BUILD_CURL_TESTS)
add_subdirectory(tests)
endif()
+#-----------------------------------------------------------------------------
+# CMake-specific curl code.
+add_executable(LIBCURL curltest.c)
+target_link_libraries(LIBCURL cmcurl)
+
+if(CMAKE_CURL_TEST_URL)
+ add_test(curl LIBCURL ${CMAKE_CURL_TEST_URL})
+endif()
+
+install(FILES COPYING DESTINATION ${CMAKE_DOC_DIR}/cmcurl)
+#-----------------------------------------------------------------------------
+
if(0) # This code not needed for building within CMake.
# This needs to be run very last so other parts of the scripts can take advantage of this.
if(NOT CURL_CONFIG_HAS_BEEN_RUN_BEFORE)