]> Creatis software - creaEnvironment.git/blob - CMakeLists.txt
71756430dcee606fc7236477973296dd9c5dc0eb
[creaEnvironment.git] / CMakeLists.txt
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
2
3 #MARK_AS_ADVANCED( FORCE CMAKE_BACKWARDS_COMPATIBILITY )
4
5 # for CMake 2.6 corrected behaviour (see "cmake --help-policy CMP0003")
6 IF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
7   CMAKE_POLICY(SET CMP0003 NEW)
8   CMAKE_POLICY(SET CMP0005 NEW)  
9   CMAKE_POLICY(SET CMP0011 NEW)
10 ENDIF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4)
11
12 PROJECT(creaEnvironment)
13
14 SET(PROJECT_MAJOR_VERSION 1)
15 SET(PROJECT_MINOR_VERSION 0)
16 SET(PROJECT_BUILD_VERSION 1)
17
18 SET(CREA_VERBOSE_CMAKE TRUE)
19
20 FIND_PACKAGE(crea REQUIRED)
21 IF (crea_FOUND)
22   INCLUDE(${crea_USE_FILE})
23 ENDIF(crea_FOUND)
24
25 CREA_PREVENT_IN_SOURCE_BUILD()
26
27 SET(USE_CREA OFF)
28 SET(USE_GDCM OFF)
29 SET(USE_GDCM_VTK OFF)
30 SET(USE_WXWIDGETS OFF)
31 SET(USE_VTK OFF)
32 SET(USE_ITK OFF)
33 SET(USE_BOOST OFF)
34
35 CREA_FIND_AND_USE_LIBRARIES()
36
37 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
38 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR})
39 MARK_AS_ADVANCED(
40   CMAKE_BACKWARDS_COMPATIBILITY
41   EXECUTABLE_OUTPUT_PATH 
42   LIBRARY_OUTPUT_PATH
43   )
44
45
46 ADD_SUBDIRECTORY(lib)
47 ADD_SUBDIRECTORY(install)
48 #ADD_SUBDIRECTORY(appli)