CMakeLists.txt 1.23 KB
Newer Older
Ken Martin's avatar
Ken Martin committed
1 2
PROJECT(CMake)

Sebastien Barre's avatar
Sebastien Barre committed
3
SUBDIRS(Source Modules Templates Utilities)
Ken Martin's avatar
Ken Martin committed
4 5 6

# Include the standard Dart testing module
INCLUDE (${CMAKE_ROOT}/Modules/Dart.cmake)
Bill Hoffman's avatar
Bill Hoffman committed
7
INCLUDE (${CMAKE_BINARY_DIR}/Source/InitialConfigureFlags.cmake OPTIONAL)
Bill Hoffman's avatar
Bill Hoffman committed
8 9 10
IF(CMAKE_CONFIGURE_INSTALL_PREFIX)
  SET(CMAKE_INSTALL_PREFIX ${CMAKE_CONFIGURE_INSTALL_PREFIX} )
ENDIF(CMAKE_CONFIGURE_INSTALL_PREFIX)
Ken Martin's avatar
Ken Martin committed
11

Bill Hoffman's avatar
Bill Hoffman committed
12
# use the ansi CXX compile flag for building cmake
Ken Martin's avatar
Ken Martin committed
13 14 15
IF (CMAKE_ANSI_CXXFLAGS)
  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CMAKE_ANSI_CXXFLAGS}")  
ENDIF (CMAKE_ANSI_CXXFLAGS)
16 17 18 19 20

IF (CMAKE_ANSI_CFLAGS)
  SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_ANSI_CFLAGS}")  
ENDIF (CMAKE_ANSI_CFLAGS)

Ken Martin's avatar
Ken Martin committed
21 22 23 24 25 26 27
# add some testing dependencies
IF(BUILD_TESTING)
  IF (DART_ROOT)
    ADD_DEPENDENCIES(Nightly cmaketest cmake)
    ADD_DEPENDENCIES(Experimental cmaketest cmake)
    ADD_DEPENDENCIES(NightlyTest cmaketest cmake)
    ADD_DEPENDENCIES(ExperimentalTest cmaketest cmake)
nobody's avatar
nobody committed
28

29
    CONFIGURE_FILE(${CMake_SOURCE_DIR}/CMakeLogo.gif ${CMake_BINARY_DIR}/Testing/HTML/TestingResults/Icons/Logo.gif COPYONLY)
Ken Martin's avatar
Ken Martin committed
30 31 32
  ENDIF (DART_ROOT)
ENDIF(BUILD_TESTING)

33 34 35
SET(EXECUTABLE_OUTPUT_PATH ${CMake_BINARY_DIR}/Source CACHE PATH 
  "Where to put the executables for CMake"
)
Ken Martin's avatar
Ken Martin committed
36

37
INCLUDE_REGULAR_EXPRESSION("^(\\.\\./)?(cm|FLTK|CMake|form).*")
Ken Martin's avatar
Ken Martin committed
38

Ken Martin's avatar
Ken Martin committed
39