CMakeLists.txt
changeset 5168 8a074a255af0
parent 5053 a767954cfa03
child 5169 e353ca78d28b
equal deleted inserted replaced
5167:7b515d0945b1 5168:8a074a255af0
    33 	set(HW_DEV false)
    33 	set(HW_DEV false)
    34 ENDIF()
    34 ENDIF()
    35 
    35 
    36 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules)
    36 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules)
    37 
    37 
    38 set(CPACK_PACKAGE_VERSION_MAJOR "0")
    38 set( CPACK_PACKAGE_VERSION_MAJOR 0 )
    39 set(CPACK_PACKAGE_VERSION_MINOR "9")
    39 set( CPACK_PACKAGE_VERSION_MINOR 9 )
    40 set(CPACK_PACKAGE_VERSION_PATCH "16${version_suffix}")
    40 set( CPACK_PACKAGE_VERSION_PATCH 16${version_suffix} )
    41 
    41 
    42 #set some safe values
    42 #set some safe values
    43 IF(NOT WITH_SERVER)
    43 IF(NOT WITH_SERVER)
    44 	SET(WITH_SERVER 0)
    44 	SET(WITH_SERVER 0)
    45 ENDIF(NOT WITH_SERVER)
    45 ENDIF(NOT WITH_SERVER)
   151 else()
   151 else()
   152 	set(SHAREPATH share/hedgewars/)
   152 	set(SHAREPATH share/hedgewars/)
   153 endif()
   153 endif()
   154 set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
   154 set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
   155 
   155 
   156 set(HEDGEWARS_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
   156 set( HEDGEWARS_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}" )
   157 set(HEDGEWARS_PROTO_VER 38)
   157 set( HEDGEWARS_PROTO_VER 38 )
   158 
   158 
   159 if(WITH_SERVER)
   159 if(WITH_SERVER)
   160 	find_program(ghc_executable ghc)
   160 	find_program(ghc_executable ghc)
   161 
   161 
   162 	if(ghc_executable)
   162 	if(ghc_executable)