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.
This commit is contained in:
parent
1959304295
commit
10d80b68e4
|
@ -908,6 +908,18 @@ if(BUILD_CURL_TESTS)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
endif()
|
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.
|
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.
|
# 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)
|
if(NOT CURL_CONFIG_HAS_BEEN_RUN_BEFORE)
|
||||||
|
|
Loading…
Reference in New Issue