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 1)
18 SET(CREA_VERBOSE_CMAKE TRUE)
20 FIND_PACKAGE(crea REQUIRED)
22 INCLUDE(${crea_USE_FILE})
25 CREA_PREVENT_IN_SOURCE_BUILD()
30 SET(USE_WXWIDGETS OFF)
35 CREA_FIND_AND_USE_LIBRARIES()
37 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
38 SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR})
40 CMAKE_BACKWARDS_COMPATIBILITY
41 EXECUTABLE_OUTPUT_PATH
47 ADD_SUBDIRECTORY(install)
48 #ADD_SUBDIRECTORY(appli)