1 CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
3 #MARK_AS_ADVANCED( FORCE CMAKE_BACKWARDS_COMPATIBILITY )
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)
12 PROJECT(creaEnvironment)
14 SET(PROJECT_MAJOR_VERSION 1)
15 SET(PROJECT_MINOR_VERSION 0)
16 SET(PROJECT_BUILD_VERSION 2)
18 #==================================
21 set (CMAKE_MODULE_PATH ${CMAKE_INSTALL_PREFIX}/share/cmake/Module)
23 #==================================
24 # Find crea (mandatory, to use macros)
25 SET(CREA_VERBOSE_CMAKE TRUE)
27 FIND_PACKAGE(crea REQUIRED)
29 INCLUDE(${crea_USE_FILE})
32 CREA_PREVENT_IN_SOURCE_BUILD()
37 SET(USE_WXWIDGETS OFF)
42 CREA_FIND_AND_USE_LIBRARIES()
44 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
45 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR})
47 CMAKE_BACKWARDS_COMPATIBILITY
48 EXECUTABLE_OUTPUT_PATH
54 ADD_SUBDIRECTORY(install)
55 #ADD_SUBDIRECTORY(appli)