CMakeLists.txt
branchphysfslayer
changeset 7951 c64c0b413ff7
parent 7928 88fde28bbda6
parent 7933 223b3a195474
child 8019 b216953c2617
equal deleted inserted replaced
7931:5a27ed7f17b7 7951:c64c0b413ff7
    10 ENDFOREACH()
    10 ENDFOREACH()
    11 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules)
    11 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules)
    12 
    12 
    13 
    13 
    14 #detect Mercurial revision (if present)
    14 #detect Mercurial revision (if present)
    15 set(version_suffix "-dev") #UNSET THIS VARIABLE AT RELEASE TIME
    15 set(version_suffix "") #UNSET THIS VARIABLE AT RELEASE TIME
    16 set(HGCHANGED "")
    16 set(HGCHANGED "")
    17 IF(version_suffix MATCHES "-dev")
    17 IF(version_suffix MATCHES "-dev")
    18     set(HW_DEV true)
    18     set(HW_DEV true)
    19     set(default_build_type "DEBUG")
    19     set(default_build_type "DEBUG")
    20     IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.hg)
    20     IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.hg)
    41 
    41 
    42 
    42 
    43 #versioning
    43 #versioning
    44 set(CPACK_PACKAGE_VERSION_MAJOR 0)
    44 set(CPACK_PACKAGE_VERSION_MAJOR 0)
    45 set(CPACK_PACKAGE_VERSION_MINOR 9)
    45 set(CPACK_PACKAGE_VERSION_MINOR 9)
    46 set(CPACK_PACKAGE_VERSION_PATCH 19${version_suffix})
    46 set(CPACK_PACKAGE_VERSION_PATCH 18${version_suffix})
    47 set(HEDGEWARS_PROTO_VER 44)
    47 set(HEDGEWARS_PROTO_VER 43)
    48 set(HEDGEWARS_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
    48 set(HEDGEWARS_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
    49 
    49 
    50 
    50 
    51 #set some default values
    51 #set some default values
    52 option(NOSERVER "Disable gameServer build [default: auto]" OFF)
    52 option(NOSERVER "Disable gameServer build [default: auto]" OFF)
    53 option(NOPNG "Disable screenshoot compression [default: auto]" OFF)
    53 option(NOPNG "Disable screenshoot compression [default: auto]" OFF)
    54 option(NOVIDEOREC "Disable video recording [default: auto]" OFF)
    54 option(NOVIDEOREC "Disable video recording [default: auto]" OFF)
    55 
    55 
    56 option(BUILD_ENGINE_LIBRARY "Enable hwengine library [default: off]" OFF)
    56 option(BUILD_ENGINE_LIBRARY "Enable hwengine library [default: off]" OFF)
    57 option(ANDROID "Enable Android build [default: off]" OFF)
    57 option(ANDROID "Enable Android build [default: off]" OFF)
       
    58 
       
    59 option(NOAUTOUPDATE "Disable OS X Sparkle update checking" OFF)
    58 option(CROSSAPPLE "Enable OSX when not on OSX [default: off]" OFF)
    60 option(CROSSAPPLE "Enable OSX when not on OSX [default: off]" OFF)
    59 
    61 
    60 
    62 
    61 #bundle .app setup
    63 #bundle .app setup
    62 if(APPLE OR CROSSAPPLE)
    64 if(APPLE OR CROSSAPPLE)