diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-03-04 15:05:01 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-03-04 15:05:01 (GMT) |
commit | f451469d58384f9040bdb2975540172ca8134cf3 (patch) | |
tree | 6a37ce6d0a8f973f879d2cb5b521cc7ebcac82f8 /Source/CMakeLists.txt | |
parent | bab4bf8591deb8f86e30621b2cb7105afef8ad8c (diff) | |
download | CMake-f451469d58384f9040bdb2975540172ca8134cf3.zip CMake-f451469d58384f9040bdb2975540172ca8134cf3.tar.gz CMake-f451469d58384f9040bdb2975540172ca8134cf3.tar.bz2 |
ENH: Cleanups
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r-- | Source/CMakeLists.txt | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index a2fcbe1..79124bd 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -134,7 +134,7 @@ ENDIF(CMAKE_BUILD_MFC_DIALOG) ADD_EXECUTABLE(cmake cmakemain.cxx) ADD_EXECUTABLE(DumpDocumentation cmDumpDocumentation) -SET(CMTEST_SRCS ctest.cxx cmCTest.cxx +SET(CMTEST_SRCS cmCTest.cxx CTest/cmCTestGenericHandler.cxx CTest/cmCTestBuildHandler.cxx CTest/cmCTestConfigureHandler.cxx @@ -148,6 +148,7 @@ SET(CMTEST_SRCS ctest.cxx cmCTest.cxx CTest/cmCTestStartCommand.cxx CTest/cmCTestUpdateCommand.cxx CTest/cmCTestMemCheckHandler.cxx + CTest/cmCTestSubmit.cxx ) INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/Source/CTest) @@ -159,19 +160,8 @@ ENDIF (UNIX) TARGET_LINK_LIBRARIES(cmake CMakeLib) TARGET_LINK_LIBRARIES(DumpDocumentation CMakeLib) -IF(CMAKE_BUILD_WITH_CURL) - # Don't even look for this as we don't use that part of curl - # and linking in the the library can cause problems. - SUBDIRS(CTest) - SET(CMTEST_SRCS ${CMTEST_SRCS} CTest/cmCTestSubmit.cxx) - ADD_DEFINITIONS(-DHAVE_CURL) -ENDIF(CMAKE_BUILD_WITH_CURL) - -ADD_EXECUTABLE(ctest ${CMTEST_SRCS}) -TARGET_LINK_LIBRARIES(ctest CMakeLib) -IF(CMAKE_BUILD_WITH_CURL) - TARGET_LINK_LIBRARIES(ctest Curl) -ENDIF(CMAKE_BUILD_WITH_CURL) +ADD_EXECUTABLE(ctest ctest.cxx ${CMTEST_SRCS}) +TARGET_LINK_LIBRARIES(ctest CMakeLib ${CMAKE_CURL_LIBRARIES}) IF (UNIX) INCLUDE (${CMake_SOURCE_DIR}/Modules/FindCurses.cmake OPTIONAL) |