CMake/Source/CTest/CMakeLists.txt

29 lines
763 B
CMake

CMAKE_MINIMUM_REQUIRED(VERSION 1.5)
PROJECT(CTEST CXX)
#silence duplicate symbol warnings on AIX
IF(CMAKE_SYSTEM MATCHES "AIX.*")
IF(NOT CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -bhalt:5 ")
ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
ENDIF(CMAKE_SYSTEM MATCHES "AIX.*")
SUBDIRS(Curl)
FIND_LIBRARY(CMAKE_LIBRARY NAMES CMakeLib PATHS
${CTEST_BINARY_DIR}/..
${CTEST_BINARY_DIR}/../Source
${CTEST_BINARY_DIR}/../../Source)
SET(CTEST_SRCS
../ctest.cxx
../cmCTest.cxx
cmCTestSubmit.cxx)
INCLUDE_DIRECTORIES(${CTEST_SOURCE_DIR}/..
${CTEST_SOURCE_DIR}/Curl)
ADD_DEFINITIONS(-DHAVE_CURL)
ADD_EXECUTABLE(ctest ${CTEST_SRCS})
TARGET_LINK_LIBRARIES(ctest ${CMAKE_LIBRARY} Curl)