summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-03-04 19:27:32 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-03-04 19:27:32 (GMT)
commitef282e2a7f14551af0e45f76a153e81891f1e4f5 (patch)
treee82b0bf324fa1a624660f01292941398de68aa14
parent89f603b620648d711797563e3176e90b8a108f38 (diff)
downloadCMake-ef282e2a7f14551af0e45f76a153e81891f1e4f5.zip
CMake-ef282e2a7f14551af0e45f76a153e81891f1e4f5.tar.gz
CMake-ef282e2a7f14551af0e45f76a153e81891f1e4f5.tar.bz2
ENH: More cleanups and start linking ctest to XML-RPC
-rw-r--r--CMakeLists.txt12
-rw-r--r--Source/CMakeLists.txt20
2 files changed, 22 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 78e2602..08c1b0d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -64,16 +64,22 @@ SUBDIRS(Source/kwsys)
#-----------------------------------------------------------------------------
# Build Curl library for CTest.
SUBDIRS(Source/CTest/Curl)
+SET(CMAKE_CURL_INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/Source/CTest/Curl")
+SET(CMAKE_CURL_LIBRARIES "Curl")
#-----------------------------------------------------------------------------
# Build expat library for CMake and CTest.
INCLUDE_DIRECTORIES(${CMake_BINARY_DIR}/Utilities)
+SUBDIRS(Utilities/cmexpat Utilities/cmzlib)
SET(CMAKE_EXPAT_INCLUDES "${CMAKE_CURRENT_BINARY_DIR}/Utilities/cmexpat")
SET(CMAKE_EXPAT_LIBRARIES "cmexpat")
-SET(CMAKE_CURL_INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/Source/CTest/Curl")
-SET(CMAKE_CURL_LIBRARIES "Curl")
-SUBDIRS(Utilities/cmexpat Utilities/cmzlib)
+
SUBDIRS(Utilities/cmxmlrpc)
+SET(CMAKE_XMLRPC_INCLUDES
+ "${CMAKE_CURRENT_SOURCE_DIR}/Utilities/cmxmlrpc"
+ "${CMAKE_CURRENT_BINARY_DIR}/Utilities/cmxmlrpc"
+ )
+SET(CMAKE_XMLRPC_LIBRARIES "cmXMLRPC")
IF (UNIX)
INCLUDE (${CMake_SOURCE_DIR}/Modules/FindCurses.cmake OPTIONAL)
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index e03da01..a007312 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -2,12 +2,15 @@ CMAKE_MINIMUM_REQUIRED(VERSION 1.5)
# configure the .h file
CONFIGURE_FILE(
- ${CMake_SOURCE_DIR}/Source/cmConfigure.cmake.h.in
- ${CMake_BINARY_DIR}/Source/cmConfigure.h )
+ "${CMake_SOURCE_DIR}/Source/cmConfigure.cmake.h.in"
+ "${CMake_BINARY_DIR}/Source/cmConfigure.h"
+ )
# add the include path to find the .h
-INCLUDE_DIRECTORIES(${CMake_BINARY_DIR}/Source)
-INCLUDE_DIRECTORIES(${CMake_SOURCE_DIR}/Source)
+INCLUDE_DIRECTORIES(
+ "${CMake_BINARY_DIR}/Source"
+ "${CMake_SOURCE_DIR}/Source"
+ )
# let cmake know it is supposed to use it
ADD_DEFINITIONS(-DCMAKE_BUILD_WITH_CMAKE)
@@ -121,7 +124,7 @@ ENDIF (WIN32)
# create a library used by the command line and the GUI
ADD_LIBRARY(CMakeLib ${SRCS})
-TARGET_LINK_LIBRARIES(CMakeLib cmsys cmexpat cmzlib)
+TARGET_LINK_LIBRARIES(CMakeLib cmsys ${CMAKE_EXPAT_LIBRARIES} cmzlib)
IF (UNIX)
TARGET_LINK_LIBRARIES(CMakeLib ${CMAKE_DL_LIBS})
ENDIF (UNIX)
@@ -133,7 +136,10 @@ ENDIF(CMAKE_BUILD_ON_VISUAL_STUDIO)
#
# CTestLib
#
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/Source/CTest)
+INCLUDE_DIRECTORIES(
+ "${CMAKE_SOURCE_DIR}/Source/CTest"
+ ${CMAKE_XMLRPC_INCLUDES}
+ )
#
# Sources for CTestLib
#
@@ -156,7 +162,7 @@ SET(CMTEST_SRCS cmCTest.cxx
# Build CTestLib
ADD_LIBRARY(CTestLib ${CMTEST_SRCS})
-TARGET_LINK_LIBRARIES(CTestLib CMakeLib ${CMAKE_CURL_LIBRARIES})
+TARGET_LINK_LIBRARIES(CTestLib CMakeLib ${CMAKE_CURL_LIBRARIES} ${CMAKE_XMLRPC_LIBRARIES})
# Build CMake executable
ADD_EXECUTABLE(cmake cmakemain.cxx)