mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
cmake: only install Marble files when we use Marble
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8a35794632
commit
939d7ee804
1 changed files with 12 additions and 6 deletions
|
@ -393,8 +393,10 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||||
set(MACDEPLOY_ARGS "${EXTRA_MACDEPLOY_ARGS}-executable=${APP_BUNDLE_DIR}/Contents/MacOS/${SUBSURFACE_TARGET} -always-overwrite")
|
set(MACDEPLOY_ARGS "${EXTRA_MACDEPLOY_ARGS}-executable=${APP_BUNDLE_DIR}/Contents/MacOS/${SUBSURFACE_TARGET} -always-overwrite")
|
||||||
set(RESOURCEDIR ${CMAKE_BINARY_DIR}/${APP_BUNDLE_DIR}/Contents/Resources)
|
set(RESOURCEDIR ${CMAKE_BINARY_DIR}/${APP_BUNDLE_DIR}/Contents/Resources)
|
||||||
set(PLUGINDIR ${CMAKE_BINARY_DIR}/${APP_BUNDLE_DIR}/Contents/PlugIns)
|
set(PLUGINDIR ${CMAKE_BINARY_DIR}/${APP_BUNDLE_DIR}/Contents/PlugIns)
|
||||||
install(DIRECTORY marbledata/maps DESTINATION ${RESOURCEDIR}/data)
|
if(NOT NO_MARBLE)
|
||||||
install(DIRECTORY marbledata/bitmaps DESTINATION ${RESOURCEDIR}/data)
|
install(DIRECTORY marbledata/maps DESTINATION ${RESOURCEDIR}/data)
|
||||||
|
install(DIRECTORY marbledata/bitmaps DESTINATION ${RESOURCEDIR}/data)
|
||||||
|
endif()
|
||||||
install(DIRECTORY Documentation/images DESTINATION ${RESOURCEDIR}/share/Documentation)
|
install(DIRECTORY Documentation/images DESTINATION ${RESOURCEDIR}/share/Documentation)
|
||||||
install(FILES ${DOCFILES} DESTINATION ${RESOURCEDIR}/share/Documentation)
|
install(FILES ${DOCFILES} DESTINATION ${RESOURCEDIR}/share/Documentation)
|
||||||
install(DIRECTORY theme DESTINATION ${RESOURCEDIR})
|
install(DIRECTORY theme DESTINATION ${RESOURCEDIR})
|
||||||
|
@ -434,8 +436,10 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
# "make install", copies everything into a staging area
|
# "make install", copies everything into a staging area
|
||||||
# "make installer", uses makensis to create an installer executable
|
# "make installer", uses makensis to create an installer executable
|
||||||
set(WINDOWSSTAGING ${CMAKE_BINARY_DIR}/staging)
|
set(WINDOWSSTAGING ${CMAKE_BINARY_DIR}/staging)
|
||||||
install(DIRECTORY marbledata/maps DESTINATION ${WINDOWSSTAGING}/data)
|
if(NOT NO_MARBLE)
|
||||||
install(DIRECTORY marbledata/bitmaps DESTINATION ${WINDOWSSTAGING}/data)
|
install(DIRECTORY marbledata/maps DESTINATION ${WINDOWSSTAGING}/data)
|
||||||
|
install(DIRECTORY marbledata/bitmaps DESTINATION ${WINDOWSSTAGING}/data)
|
||||||
|
endif()
|
||||||
install(DIRECTORY Documentation/images DESTINATION ${WINDOWSSTAGING}/Documentation)
|
install(DIRECTORY Documentation/images DESTINATION ${WINDOWSSTAGING}/Documentation)
|
||||||
install(FILES ${DOCFILES} DESTINATION ${WINDOWSSTAGING}/Documentation)
|
install(FILES ${DOCFILES} DESTINATION ${WINDOWSSTAGING}/Documentation)
|
||||||
install(DIRECTORY theme DESTINATION ${WINDOWSSTAGING})
|
install(DIRECTORY theme DESTINATION ${WINDOWSSTAGING})
|
||||||
|
@ -470,8 +474,10 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
DEPENDS fake_install
|
DEPENDS fake_install
|
||||||
)
|
)
|
||||||
elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
install(DIRECTORY marbledata/maps DESTINATION share/subsurface/data)
|
if(NOT NO_MARBLE)
|
||||||
install(DIRECTORY marbledata/bitmaps DESTINATION share/subsurface/data)
|
install(DIRECTORY marbledata/maps DESTINATION share/subsurface/data)
|
||||||
|
install(DIRECTORY marbledata/bitmaps DESTINATION share/subsurface/data)
|
||||||
|
endif()
|
||||||
install(FILES subsurface.debug DESTINATION bin)
|
install(FILES subsurface.debug DESTINATION bin)
|
||||||
install(FILES subsurface.desktop DESTINATION share/applications)
|
install(FILES subsurface.desktop DESTINATION share/applications)
|
||||||
install(FILES icons/subsurface-icon.svg DESTINATION share/icons/hicolor/scalable/apps)
|
install(FILES icons/subsurface-icon.svg DESTINATION share/icons/hicolor/scalable/apps)
|
||||||
|
|
Loading…
Reference in a new issue