mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cmake: fix install
This had not been updated since the change of direction that we would support building Mobile and Desktop on all supported platforms. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
44990671f1
commit
060b5e2189
1 changed files with 4 additions and 9 deletions
|
@ -311,18 +311,14 @@ foreach(QTTRANSLATION ${QTTRANSLATIONS_BASE})
|
|||
endforeach()
|
||||
|
||||
# now for each platform the install instructions
|
||||
if(SUBSURFACE_TARGET_PLATFORM MATCHES "Android")
|
||||
if(ANDROID)
|
||||
# Android template directory
|
||||
include(${QT_ANDROID_CMAKE})
|
||||
set(ANDROID_PACKAGE_SOURCE_DIR, ${CMAKE_BINARY_DIR}/android-mobile)
|
||||
add_qt_android_apk(subsurface-mobile.apk subsurface-mobile
|
||||
PACKAGE_SOURCES ${CMAKE_CURRENT_LIST_DIR}/android-mobile
|
||||
)
|
||||
elseif(SUBSURFACE_TARGET_PLATFORM MATCHES "AndroidEmulator")
|
||||
elseif(SUBSURFACE_TARGET_PLATFORM MATCHES "iOS")
|
||||
elseif(SUBSURFACE_TARGET_PLATFORM MATCHES "iOSEmulator")
|
||||
elseif(SUBSURFACE_TARGET_PLATFORM MATCHES "Desktop")
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
set(RESOURCEDIR ${CMAKE_BINARY_DIR}/Subsurface.app/Contents/Resources)
|
||||
set(PLUGINDIR ${CMAKE_BINARY_DIR}/Subsurface.app/Contents/PlugIns)
|
||||
install(DIRECTORY marbledata/maps DESTINATION ${RESOURCEDIR}/data)
|
||||
|
@ -408,7 +404,6 @@ elseif(SUBSURFACE_TARGET_PLATFORM MATCHES "Desktop")
|
|||
)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (MAKE_TESTS)
|
||||
add_subdirectory(tests)
|
||||
|
|
Loading…
Add table
Reference in a new issue