Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Context not available. | |||||
69 | include(GenerateExportHeader) | 69 | include(GenerateExportHeader) | ||
---|---|---|---|---|---|
70 | include( MarbleMacros ) | 70 | include( MarbleMacros ) | ||
71 | 71 | | |||
72 | # Generate a standalone app bundle when building on Apple's OS X | ||||
73 | # unset this to build a more unix-traditional layout that uses and provides | ||||
74 | # shared libraries and other resources (e.g. for MacPorts, Fink, HomeBrew etc.) | ||||
75 | if(APPLE) | ||||
76 | option(APPLE_STANDALONE_BUNDLE "Generate a standalone app bundle when building on Apple's OS X" ON) | ||||
77 | add_feature_info("App Bundle" APPLE_STANDALONE_BUNDLE "Generate a standalone app bundle when building on Apple's OS X.") | ||||
78 | endif(APPLE) | ||||
79 | | ||||
72 | #################################################### | 80 | #################################################### | ||
73 | # Generate the tiles with the tilecreator at compile time | 81 | # Generate the tiles with the tilecreator at compile time | ||
74 | # if this option is set, srtm.jpg will not be installed but the generated tiles instead | 82 | # if this option is set, srtm.jpg will not be installed but the generated tiles instead | ||
Context not available. | |||||
77 | #################################################### | 85 | #################################################### | ||
78 | # Build a D-Bus interface for the Marble widget | 86 | # Build a D-Bus interface for the Marble widget | ||
79 | # This is disabled by default for all win32, apple and Android | 87 | # This is disabled by default for all win32, apple and Android | ||
80 | if(WIN32 OR APPLE OR CMAKE_SYSTEM_NAME STREQUAL Android) | 88 | if(WIN32 OR APPLE_STANDALONE_BUNDLE OR CMAKE_SYSTEM_NAME STREQUAL Android) | ||
81 | option(BUILD_WITH_DBUS "Build the D-Bus interface for the Marble widget" OFF) | 89 | option(BUILD_WITH_DBUS "Build the D-Bus interface for the Marble widget" OFF) | ||
82 | else() | 90 | else() | ||
83 | option(BUILD_WITH_DBUS "Build the D-Bus interface for the Marble widget" ON) | 91 | option(BUILD_WITH_DBUS "Build the D-Bus interface for the Marble widget" ON) | ||
Context not available. | |||||
188 | FIND_LIBRARY(APP_SERVICES_LIBRARY ApplicationServices ) | 196 | FIND_LIBRARY(APP_SERVICES_LIBRARY ApplicationServices ) | ||
189 | MARK_AS_ADVANCED (APP_SERVICES_LIBRARY) | 197 | MARK_AS_ADVANCED (APP_SERVICES_LIBRARY) | ||
190 | SET(MAC_EXTRA_LIBS ${APP_SERVICES_LIBRARY}) | 198 | SET(MAC_EXTRA_LIBS ${APP_SERVICES_LIBRARY}) | ||
191 | # for Mac OS X, everything is put inside an application bundle | 199 | if(APPLE_STANDALONE_BUNDLE) | ||
192 | SET (CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/) | 200 | ADD_DEFINITIONS(-DAPPLE_STANDALONE_BUNDLE) | ||
193 | # path for library references | 201 | # for Mac OS X, everything is put inside an application bundle | ||
194 | SET (CMAKE_INSTALL_NAME_DIR @executable_path/lib) | 202 | SET (CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/) | ||
195 | # install the Info.plist file | 203 | # path for library references | ||
196 | install(FILES src/mac/Info.plist DESTINATION ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents) | 204 | SET (CMAKE_INSTALL_NAME_DIR @executable_path/lib) | ||
197 | #SET (lib_dir ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS/lib) | 205 | # install the Info.plist file | ||
198 | SET (data_dir ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS/resources/data) | 206 | install(FILES src/mac/Info.plist DESTINATION ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents) | ||
199 | SET (plugin_dir ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS/resources/plugins) | 207 | #SET (lib_dir ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS/lib) | ||
208 | SET (data_dir ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/Resources) | ||||
209 | SET (plugin_dir ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/Resources/plugins) | ||||
210 | else(APPLE_STANDALONE_BUNDLE) | ||||
211 | set(data_dir ${CMAKE_INSTALL_FULL_DATAROOTDIR}/marble/data) | ||||
212 | set(plugin_dir ${CMAKE_INSTALL_FULL_LIBDIR}/marble/plugins) | ||||
213 | set(CMAKE_MODULES_INSTALL_PATH ${CMAKE_INSTALL_FULL_DATAROOTDIR}/marble/cmake) | ||||
214 | endif(APPLE_STANDALONE_BUNDLE) | ||||
200 | elseif(CMAKE_SYSTEM_NAME STREQUAL Android) | 215 | elseif(CMAKE_SYSTEM_NAME STREQUAL Android) | ||
201 | set(plugin_dir "${CMAKE_INSTALL_PREFIX}/assets/plugins") | 216 | set(plugin_dir "${CMAKE_INSTALL_PREFIX}/assets/plugins") | ||
202 | set(data_dir "${CMAKE_INSTALL_PREFIX}/assets/data") | 217 | set(data_dir "${CMAKE_INSTALL_PREFIX}/assets/data") | ||
Context not available. |