2003-01-07 07:07:24 +03:00
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 1.5)
|
|
|
|
PROJECT(CTEST CXX)
|
|
|
|
|
2003-02-07 19:47:50 +03:00
|
|
|
#silence duplicate symbol warnings on AIX
|
|
|
|
IF(CMAKE_SYSTEM MATCHES "AIX.*")
|
|
|
|
IF(NOT CMAKE_COMPILER_IS_GNUCXX)
|
2003-04-25 23:17:08 +04:00
|
|
|
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -bhalt:5 ")
|
2003-02-07 19:47:50 +03:00
|
|
|
ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
ENDIF(CMAKE_SYSTEM MATCHES "AIX.*")
|
|
|
|
|
2003-01-07 07:07:24 +03:00
|
|
|
SUBDIRS(Curl)
|
|
|
|
|
2003-04-30 01:23:56 +04:00
|
|
|
IF(CMAKE_BUILD_WITH_CURL)
|
2003-04-25 23:17:08 +04:00
|
|
|
SET(CMAKE_LIBRARY CMakeLib)
|
2003-04-30 01:23:56 +04:00
|
|
|
ELSE(CMAKE_BUILD_WITH_CURL)
|
2003-04-25 23:17:08 +04:00
|
|
|
FIND_LIBRARY(CMAKE_LIBRARY NAMES CMakeLib PATHS
|
|
|
|
${CTEST_BINARY_DIR}/..
|
|
|
|
${CTEST_BINARY_DIR}/../Source
|
|
|
|
${CTEST_BINARY_DIR}/../../Source)
|
2003-04-30 01:23:56 +04:00
|
|
|
ENDIF(CMAKE_BUILD_WITH_CURL)
|
2003-01-07 07:07:24 +03:00
|
|
|
|
|
|
|
SET(CTEST_SRCS
|
2003-04-25 23:17:08 +04:00
|
|
|
../ctest.cxx
|
|
|
|
../cmCTest.cxx
|
|
|
|
cmCTestSubmit.cxx)
|
2003-01-07 07:07:24 +03:00
|
|
|
|
2003-03-11 23:25:50 +03:00
|
|
|
GET_FILENAME_COMPONENT(CMAKE_DIR ${CMAKE_LIBRARY} PATH)
|
|
|
|
|
2003-04-23 21:58:00 +04:00
|
|
|
INCLUDE_DIRECTORIES(${CTEST_SOURCE_DIR}
|
2003-04-25 23:17:08 +04:00
|
|
|
${CTEST_SOURCE_DIR}/..
|
|
|
|
${CTEST_SOURCE_DIR}/Curl
|
|
|
|
${CMAKE_DIR}
|
|
|
|
${CMAKE_DIR}/..)
|
2003-01-07 07:07:24 +03:00
|
|
|
|
2003-04-30 01:23:56 +04:00
|
|
|
IF(NOT CMAKE_BUILD_WITH_CURL)
|
2003-04-25 23:17:08 +04:00
|
|
|
ADD_DEFINITIONS(-DHAVE_CURL)
|
|
|
|
ADD_EXECUTABLE(cmtest ${CTEST_SRCS})
|
|
|
|
TARGET_LINK_LIBRARIES(cmtest ${CMAKE_LIBRARY} Curl)
|
2003-04-30 01:23:56 +04:00
|
|
|
ENDIF(NOT CMAKE_BUILD_WITH_CURL)
|