Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Line(s) | 159 | SET(MAC_EXTRA_LIBS ${APP_SERVICES_LIBRARY}) | |||
---|---|---|---|---|---|
165 | install(FILES src/mac/Info.plist DESTINATION ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents) | 165 | install(FILES src/mac/Info.plist DESTINATION ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents) | ||
166 | #SET (lib_dir ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS/lib) | 166 | #SET (lib_dir ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS/lib) | ||
167 | SET (data_dir ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS/resources/data) | 167 | SET (data_dir ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS/resources/data) | ||
168 | SET (plugin_dir ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS/resources/plugins) | 168 | SET (plugin_dir ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS/resources/plugins) | ||
169 | elseif(CMAKE_SYSTEM_NAME STREQUAL Android) | 169 | elseif(CMAKE_SYSTEM_NAME STREQUAL Android) | ||
170 | set(plugin_dir "${CMAKE_INSTALL_PREFIX}/assets/plugins") | 170 | set(plugin_dir "${CMAKE_INSTALL_PREFIX}/assets/plugins") | ||
171 | set(data_dir "${CMAKE_INSTALL_PREFIX}/assets/data") | 171 | set(data_dir "${CMAKE_INSTALL_PREFIX}/assets/data") | ||
172 | else() # Linux / bsd etc... | 172 | else() # Linux / bsd etc... | ||
173 | set(data_dir ${CMAKE_INSTALL_PREFIX}/share/marble/data) | 173 | set(data_dir ${CMAKE_INSTALL_FULL_DATAROOTDIR}/marble/data) | ||
174 | set(plugin_dir ${CMAKE_INSTALL_FULL_LIBDIR}/marble/plugins) | 174 | set(plugin_dir ${CMAKE_INSTALL_FULL_LIBDIR}/marble/plugins) | ||
175 | set(CMAKE_MODULES_INSTALL_PATH ${CMAKE_INSTALL_PREFIX}/share/marble/cmake) | 175 | set(CMAKE_MODULES_INSTALL_PATH ${CMAKE_INSTALL_FULL_DATAROOTDIR}/marble/cmake) | ||
176 | endif() | 176 | endif() | ||
177 | 177 | | |||
178 | if(NOT ICON_INSTALL_DIR) | 178 | if(NOT ICON_INSTALL_DIR) | ||
179 | set(ICON_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/icons) | 179 | set(ICON_INSTALL_DIR ${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons) | ||
180 | endif(NOT ICON_INSTALL_DIR) | 180 | endif(NOT ICON_INSTALL_DIR) | ||
181 | 181 | | |||
182 | if(NOT APPS_INSTALL_DIR) | 182 | if(NOT APPS_INSTALL_DIR) | ||
183 | set(APPS_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/applications) | 183 | set(APPS_INSTALL_DIR ${CMAKE_INSTALL_FULL_DATAROOTDIR}/applications) | ||
184 | endif(NOT APPS_INSTALL_DIR) | 184 | endif(NOT APPS_INSTALL_DIR) | ||
185 | 185 | | |||
186 | if (NOT MARBLE_DATA_PATH) | 186 | if (NOT MARBLE_DATA_PATH) | ||
187 | set (MARBLE_DATA_PATH ${data_dir}) | 187 | set (MARBLE_DATA_PATH ${data_dir}) | ||
188 | endif (NOT MARBLE_DATA_PATH) | 188 | endif (NOT MARBLE_DATA_PATH) | ||
189 | 189 | | |||
190 | if (NOT MARBLE_PLUGIN_PATH) | 190 | if (NOT MARBLE_PLUGIN_PATH) | ||
191 | set (MARBLE_PLUGIN_PATH ${plugin_dir}) | 191 | set (MARBLE_PLUGIN_PATH ${plugin_dir}) | ||
▲ Show 20 Lines • Show All 101 Lines • ▼ Show 20 Line(s) | |||||
293 | add_feature_info("Marble library C++ examples" BUILD_MARBLE_EXAMPLES "Build C++ examples showing how to use the Marble library. Toggle with BUILD_MARBLE_EXAMPLES=YES/NO.") | 293 | add_feature_info("Marble library C++ examples" BUILD_MARBLE_EXAMPLES "Build C++ examples showing how to use the Marble library. Toggle with BUILD_MARBLE_EXAMPLES=YES/NO.") | ||
294 | if(BUILD_MARBLE_EXAMPLES) | 294 | if(BUILD_MARBLE_EXAMPLES) | ||
295 | add_subdirectory(examples/cpp) | 295 | add_subdirectory(examples/cpp) | ||
296 | endif() | 296 | endif() | ||
297 | 297 | | |||
298 | #################################################### | 298 | #################################################### | ||
299 | # Install extra files | 299 | # Install extra files | ||
300 | install(FILES LICENSE.txt DESTINATION ${MARBLE_DATA_INSTALL_PATH}) | 300 | install(FILES LICENSE.txt DESTINATION ${MARBLE_DATA_INSTALL_PATH}) | ||
301 | install(FILES marble.appdata.xml DESTINATION ${CMAKE_INSTALL_PREFIX}/share/appdata/) | 301 | install(FILES marble.appdata.xml DESTINATION ${CMAKE_INSTALL_FULL_DATAROOTDIR}/appdata/) | ||
302 | 302 | | |||
303 | #################################################### | 303 | #################################################### | ||
304 | # Install CMake module | 304 | # Install CMake module | ||
305 | 305 | | |||
306 | CONFIGURE_FILE( | 306 | CONFIGURE_FILE( | ||
307 | ${CMAKE_CURRENT_SOURCE_DIR}/FindMarble.cmake.in | 307 | ${CMAKE_CURRENT_SOURCE_DIR}/FindMarble.cmake.in | ||
308 | ${CMAKE_CURRENT_BINARY_DIR}/FindMarble.cmake | 308 | ${CMAKE_CURRENT_BINARY_DIR}/FindMarble.cmake | ||
309 | ) | 309 | ) | ||
Show All 19 Lines |