CMakeLists.txt
changeset 1128 ee96cd1cad8a
parent 1088 4000b7ef4e01
child 1129 39b6e65574c6
equal deleted inserted replaced
58:86957f8de9ab 66:9f6b33a86a4d
     1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
     1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
       
     2 
       
     3 IF(POLICY CMP0043) 
       
     4   CMAKE_POLICY(SET CMP0043 OLD) 
       
     5 ENDIF(POLICY CMP0043)
     2 
     6 
     3 SET(PROJECT_NAME "LEMON")
     7 SET(PROJECT_NAME "LEMON")
     4 PROJECT(${PROJECT_NAME})
     8 PROJECT(${PROJECT_NAME})
     5 
     9 
     6 INCLUDE(FindPythonInterp)
    10 INCLUDE(FindPythonInterp)
   209 
   213 
   210 SET( CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
   214 SET( CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
   211     "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel Maintainer."
   215     "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel Maintainer."
   212     FORCE )
   216     FORCE )
   213 
   217 
       
   218 SET_DIRECTORY_PROPERTIES(PROPERTIES
       
   219   COMPILE_DEFINITIONS_DEBUG "LEMON_ENABLE_DEBUG"
       
   220   COMPILE_DEFINITIONS_MAINTAINER "LEMON_ENABLE_DEBUG"
       
   221 )
   214 
   222 
   215 INCLUDE(CheckTypeSize)
   223 INCLUDE(CheckTypeSize)
   216 CHECK_TYPE_SIZE("long long" LONG_LONG)
   224 CHECK_TYPE_SIZE("long long" LONG_LONG)
   217 SET(LEMON_HAVE_LONG_LONG ${HAVE_LONG_LONG})
   225 SET(LEMON_HAVE_LONG_LONG ${HAVE_LONG_LONG})
   218 
   226