equal
deleted
inserted
replaced
21 |
21 |
22 option(BUILD_ENGINE_LIBRARY "Enable hwengine library [default: off]" OFF) |
22 option(BUILD_ENGINE_LIBRARY "Enable hwengine library [default: off]" OFF) |
23 option(ANDROID "Enable Android build [default: off]" OFF) |
23 option(ANDROID "Enable Android build [default: off]" OFF) |
24 option(NOAUTOUPDATE "Disable OS X Sparkle update checking" OFF) |
24 option(NOAUTOUPDATE "Disable OS X Sparkle update checking" OFF) |
25 option(MINIMAL_FLAGS "Respect system flags as much as possible [default: off]" OFF) |
25 option(MINIMAL_FLAGS "Respect system flags as much as possible [default: off]" OFF) |
26 set(FPFLAGS "" CACHE STRING "Additional Freepascal flags" FORCE) |
26 set(FPFLAGS "" CACHE STRING "Additional Freepascal flags") |
27 set(GHFLAGS "" CACHE STRING "Additional Haskell flags" FORCE) |
27 set(GHFLAGS "" CACHE STRING "Additional Haskell flags") |
28 |
28 if(UNIX AND NOT APPLE) |
|
29 set(DATA_INSTALL_DIR "share/hedgewars" CACHE STRING "Resource folder path") |
|
30 endif() |
29 |
31 |
30 #detect Mercurial revision (if present) |
32 #detect Mercurial revision (if present) |
31 if(NOT NOREVISION) |
33 if(NOT NOREVISION) |
32 set(default_build_type "DEBUG") |
34 set(default_build_type "DEBUG") |
33 set(version_suffix "-development_version") |
35 set(version_suffix "-development_version") |
70 set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) |
72 set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) |
71 |
73 |
72 if(UNIX AND NOT APPLE) |
74 if(UNIX AND NOT APPLE) |
73 set(target_binary_install_dir "bin") |
75 set(target_binary_install_dir "bin") |
74 set(target_library_install_dir "lib") |
76 set(target_library_install_dir "lib") |
75 if(DEFINED DATA_INSTALL_DIR) |
77 set(SHAREPATH "${DATA_INSTALL_DIR}/") |
76 set(SHAREPATH "${DATA_INSTALL_DIR}/") |
|
77 else() |
|
78 set(SHAREPATH "share/hedgewars/") |
|
79 endif() |
|
80 else() |
78 else() |
81 set(target_binary_install_dir "./") |
79 set(target_binary_install_dir "./") |
82 |
80 |
83 if(APPLE) |
81 if(APPLE) |
84 set(CMAKE_INSTALL_PREFIX "Hedgewars.app/Contents/MacOS/") |
82 set(CMAKE_INSTALL_PREFIX "Hedgewars.app/Contents/MacOS/") |