FIX:
[cmake.git] / CMakeLists.txt
blob941a3cc679a65d6dcf19f85baee1c4b812af8682
1 PROJECT(CMake)
3 IF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
4   IF(NOT CMAKE_COMPILER_IS_GNUCXX)
5      SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -timplicit_local -no_implicit_include ")
6   ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
7 ENDIF(CMAKE_SYSTEM MATCHES "OSF1-V.*")
9 SUBDIRS(Source Modules Templates Utilities)
10 ENABLE_TESTING()
12 # Include the standard Dart testing module
13 INCLUDE (${CMake_SOURCE_DIR}/Modules/Dart.cmake)
14 INCLUDE (${CMAKE_BINARY_DIR}/Source/InitialConfigureFlags.cmake OPTIONAL)
15 IF(CMAKE_CONFIGURE_INSTALL_PREFIX)
16   SET(CMAKE_INSTALL_PREFIX ${CMAKE_CONFIGURE_INSTALL_PREFIX} )
17 ENDIF(CMAKE_CONFIGURE_INSTALL_PREFIX)
19 # use the ansi CXX compile flag for building cmake
20 IF (CMAKE_ANSI_CXXFLAGS)
21   SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_ANSI_CXXFLAGS}")  
22 ENDIF (CMAKE_ANSI_CXXFLAGS)
24 IF (CMAKE_ANSI_CFLAGS)
25   SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")  
26 ENDIF (CMAKE_ANSI_CFLAGS)
28 # add some testing dependencies
29 IF(BUILD_TESTING)
30   IF (DART_ROOT)
31     CONFIGURE_FILE(${CMake_SOURCE_DIR}/CMakeLogo.gif ${CMake_BINARY_DIR}/Testing/HTML/TestingResults/Icons/Logo.gif COPYONLY)
32   ENDIF (DART_ROOT)
33 ENDIF(BUILD_TESTING)
35 SET(EXECUTABLE_OUTPUT_PATH ${CMake_BINARY_DIR}/Source CACHE PATH 
36   "Where to put the executables for CMake"
39 INCLUDE_REGULAR_EXPRESSION("^(\\.\\./)?(cm|CMake|form).*")
41 INSTALL_FILES(/man/man1 "cmake\\.1")