]> Creatis software - creaEnvironment.git/blob - CMakeLists.txt
8f6ffedbfe7d7ef1ae9e79f70f4aca77fe1baa1a
[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 2)
17
18 #==================================
19
20 # JPR 4 mars 2011
21 set (CMAKE_MODULE_PATH ${CMAKE_INSTALL_PREFIX}/share/cmake/Module)
22
23 #==================================
24 # Find crea (mandatory, to use macros)
25 SET(CREA_VERBOSE_CMAKE TRUE)
26
27 FIND_PACKAGE(crea REQUIRED)
28 IF (crea_FOUND)
29   INCLUDE(${crea_USE_FILE})
30 ENDIF(crea_FOUND)
31
32 CREA_PREVENT_IN_SOURCE_BUILD()
33
34 SET(USE_CREA OFF)
35 SET(USE_GDCM OFF)
36 SET(USE_GDCM_VTK OFF)
37 SET(USE_WXWIDGETS OFF)
38 SET(USE_VTK OFF)
39 SET(USE_ITK OFF)
40 SET(USE_BOOST OFF)
41
42 CREA_FIND_AND_USE_LIBRARIES()
43
44 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
45 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR})
46 MARK_AS_ADVANCED(
47   CMAKE_BACKWARDS_COMPATIBILITY
48   EXECUTABLE_OUTPUT_PATH 
49   LIBRARY_OUTPUT_PATH
50   )
51
52
53 ADD_SUBDIRECTORY(lib)
54 ADD_SUBDIRECTORY(install)
55 #ADD_SUBDIRECTORY(appli)