Changeset View
Changeset View
Standalone View
Standalone View
src/apps/marble-qt/CMakeLists.txt
Context not available. | |||||
15 | endif() | 15 | endif() | ||
---|---|---|---|---|---|
16 | else (WIN32) | 16 | else (WIN32) | ||
17 | if (APPLE) | 17 | if (APPLE) | ||
18 | SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) | ||||
18 | add_executable (marble-qt ${marble_SRCS}) | 19 | add_executable (marble-qt ${marble_SRCS}) | ||
19 | # For Mac OS X, the executable must be at the root of the bundle's executable folder | 20 | # For macOS, the executable must be at the root of the bundle's executable folder | ||
20 | INSTALL(TARGETS marble-qt RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS) | 21 | INSTALL(TARGETS marble-qt RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS) | ||
22 | # This bundle must then therefore be 'fixed': Qt needs to be placed in | ||||
23 | # to the app bundle, and the paths to Qt must be replaced with | ||||
24 | # rpath locations. | ||||
25 | FIND_PROGRAM(QT_MACDEPLOYQT_EXECUTABLE NAMES macdeployqt) | ||||
26 | INSTALL(CODE " | ||||
27 | execute_process(COMMAND ${QT_MACDEPLOYQT_EXECUTABLE} | ||||
28 | \"${CMAKE_INSTALL_PREFIX}/Marble.app\" | ||||
29 | \"-always-overwrite\" | ||||
30 | \"-verbose=3\") | ||||
31 | ") | ||||
21 | else (APPLE) | 32 | else (APPLE) | ||
22 | add_executable (marble-qt ${marble_SRCS}) | 33 | add_executable (marble-qt ${marble_SRCS}) | ||
23 | endif (APPLE) | 34 | endif (APPLE) | ||
Context not available. | |||||
35 | if(WIN32) | 46 | if(WIN32) | ||
36 | target_link_libraries( | 47 | target_link_libraries( | ||
37 | marble-qt | 48 | marble-qt | ||
38 | ws2_32 | 49 | ws2_32 | ||
39 | imm32 | 50 | imm32 | ||
40 | winmm | 51 | winmm | ||
41 | ) | 52 | ) | ||
42 | endif(WIN32) | 53 | endif(WIN32) | ||
Context not available. | |||||
51 | install (TARGETS marble-qt RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}) | 62 | install (TARGETS marble-qt RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}) | ||
52 | else(WIN32) | 63 | else(WIN32) | ||
53 | if (APPLE) | 64 | if (APPLE) | ||
54 | # No need for this when installing to a bundle | 65 | # Not needed on macOS. | ||
55 | else (APPLE) | 66 | else (APPLE) | ||
56 | install (TARGETS marble-qt RUNTIME DESTINATION bin ) | 67 | install (TARGETS marble-qt RUNTIME DESTINATION bin ) | ||
57 | endif (APPLE) | 68 | endif (APPLE) | ||
Context not available. |