CMakeLists.txt
changeset 10523 00ac079fa51f
parent 10437 e586b8af4569
child 10559 44095e0a0c1a
equal deleted inserted replaced
10522:441a443a014d 10523:00ac079fa51f
    10 
    10 
    11 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules")
    11 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules")
    12 include(${CMAKE_MODULE_PATH}/utils.cmake)
    12 include(${CMAKE_MODULE_PATH}/utils.cmake)
    13 
    13 
    14 #possible cmake configuration
    14 #possible cmake configuration
    15 option(NOSERVER "Disable gameServer build (off)]" OFF)
    15 option(NOSERVER "Disable gameServer build (off)" OFF)
    16 option(NOPNG "Disable screenshoot compression (off)" OFF)
    16 option(NOPNG "Disable screenshoot compression (off)" OFF)
    17 option(NOVIDEOREC "Disable video recording (off)" OFF)
    17 option(NOVIDEOREC "Disable video recording (off)" OFF)
    18 
    18 
    19 #libraries are built shared unless explicitly added as a static
    19 #libraries are built shared unless explicitly added as a static
    20 option(BUILD_SHARED_LIBS "Build libraries as shared modules (on)" ON)
    20 option(BUILD_SHARED_LIBS "Build libraries as shared modules (on)" ON)
    31 option(ANDROID "Enable Android build (off)" OFF)
    31 option(ANDROID "Enable Android build (off)" OFF)
    32 
    32 
    33 option(MINIMAL_FLAGS "Respect system flags as much as possible (off)" OFF)
    33 option(MINIMAL_FLAGS "Respect system flags as much as possible (off)" OFF)
    34 option(NOAUTOUPDATE "Disable OS X Sparkle update checking (off)" OFF)
    34 option(NOAUTOUPDATE "Disable OS X Sparkle update checking (off)" OFF)
    35 
    35 
    36 option(BUILD_ENGINE_C "Compile hwengine as native C [default: off]" OFF)
    36 option(BUILD_ENGINE_C "Compile hwengine as native C (off)" OFF)
    37 option(GL2 "Enable OpenGL 2 rendering [default: off]" OFF)
    37 option(GL2 "Enable OpenGL 2 rendering !!!EXPERIMENTAL - DO NOT USE!!! [default: off)" OFF)
    38 
    38 
    39 set(GHFLAGS "" CACHE STRING "Additional Haskell flags")
    39 set(GHFLAGS "" CACHE STRING "Additional Haskell flags")
    40 if(UNIX AND NOT APPLE)
    40 if(UNIX AND NOT APPLE)
    41     set(DATA_INSTALL_DIR "share/hedgewars" CACHE STRING "Resource folder path")
    41     set(DATA_INSTALL_DIR "share/hedgewars" CACHE STRING "Resource folder path")
    42 endif()
    42 endif()