Changeset View
Changeset View
Standalone View
Standalone View
src/apps/marble-qt/CMakeLists.txt
1 | set(marble_SRCS qtmain.cpp QtMainWindow.cpp) | 1 | set(marble_SRCS qtmain.cpp QtMainWindow.cpp) | ||
---|---|---|---|---|---|
2 | include_directories(${CMAKE_CURRENT_BINARY_DIR} | 2 | include_directories(${CMAKE_CURRENT_BINARY_DIR} | ||
3 | ${CMAKE_CURRENT_SOURCE_DIR}/../marble-ui) | 3 | ${CMAKE_CURRENT_SOURCE_DIR}/../marble-ui) | ||
4 | 4 | | |||
5 | if(MSVC) | 5 | if(MSVC) | ||
6 | set(marble_SRCS ${marble_SRCS} marble.rc) | 6 | set(marble_SRCS ${marble_SRCS} marble.rc) | ||
7 | endif(MSVC) | 7 | endif(MSVC) | ||
8 | 8 | | |||
9 | qt_wrap_ui(marble_SRCS ${marble_UI}) | 9 | qt_wrap_ui(marble_SRCS ${marble_UI}) | ||
10 | 10 | | |||
11 | if (WIN32) | 11 | if (WIN32) | ||
12 | add_executable (marble-qt WIN32 ${marble_SRCS}) | 12 | add_executable (marble-qt WIN32 ${marble_SRCS}) | ||
13 | if (MSVC) | 13 | if (MSVC) | ||
14 | set_target_properties(marble-qt PROPERTIES LINK_FLAGS "/ENTRY:\"mainCRTStartup\"") | 14 | set_target_properties(marble-qt PROPERTIES LINK_FLAGS "/ENTRY:\"mainCRTStartup\"") | ||
15 | endif() | 15 | endif() | ||
16 | else (WIN32) | 16 | else (WIN32) | ||
17 | if (APPLE) | 17 | if (APPLE AND APPLE_STANDALONE_BUNDLE) | ||
18 | add_executable (marble-qt ${marble_SRCS}) | 18 | add_executable (marble-qt ${marble_SRCS}) | ||
19 | # For Mac OS X, the executable must be at the root of the bundle's executable folder | 19 | # For Mac OS X, 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) | 20 | INSTALL(TARGETS marble-qt RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS) | ||
21 | else (APPLE) | 21 | else (APPLE AND APPLE_STANDALONE_BUNDLE) | ||
22 | add_executable (marble-qt ${marble_SRCS}) | 22 | add_executable (marble-qt ${marble_SRCS}) | ||
23 | endif (APPLE) | 23 | endif (APPLE AND APPLE_STANDALONE_BUNDLE) | ||
24 | endif (WIN32) | 24 | endif (WIN32) | ||
25 | 25 | | |||
26 | target_link_libraries ( | 26 | target_link_libraries ( | ||
27 | marble-qt | 27 | marble-qt | ||
28 | Qt5::Widgets | 28 | Qt5::Widgets | ||
29 | Qt5::PrintSupport | 29 | Qt5::PrintSupport | ||
30 | Qt5::Network | 30 | Qt5::Network | ||
31 | marbleui | 31 | marbleui | ||
Show All 13 Lines | |||||
45 | if(STATIC_BUILD) | 45 | if(STATIC_BUILD) | ||
46 | target_link_libraries(marble ${QT_PLUGINS_DIR}/imageformats/qjpeg.lib) | 46 | target_link_libraries(marble ${QT_PLUGINS_DIR}/imageformats/qjpeg.lib) | ||
47 | target_link_libraries(marble ${QT_PLUGINS_DIR}/imageformats/qsvg.lib) | 47 | target_link_libraries(marble ${QT_PLUGINS_DIR}/imageformats/qsvg.lib) | ||
48 | endif(STATIC_BUILD) | 48 | endif(STATIC_BUILD) | ||
49 | 49 | | |||
50 | if(WIN32) | 50 | if(WIN32) | ||
51 | install (TARGETS marble-qt RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}) | 51 | install (TARGETS marble-qt RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}) | ||
52 | else(WIN32) | 52 | else(WIN32) | ||
53 | if (APPLE) | 53 | if (APPLE AND APPLE_STANDALONE_BUNDLE) | ||
54 | # No need for this when installing to a bundle | 54 | # No need for this when installing to a bundle | ||
55 | else (APPLE) | 55 | else (APPLE AND APPLE_STANDALONE_BUNDLE) | ||
56 | install (TARGETS marble-qt RUNTIME DESTINATION bin ) | 56 | install (TARGETS marble-qt RUNTIME DESTINATION bin ) | ||
57 | endif (APPLE) | 57 | endif (APPLE AND APPLE_STANDALONE_BUNDLE) | ||
58 | endif(WIN32) | 58 | endif(WIN32) | ||
59 | if(APPS_INSTALL_DIR) | 59 | if(APPS_INSTALL_DIR) | ||
60 | install(PROGRAMS org.kde.marble-qt.desktop DESTINATION ${APPS_INSTALL_DIR}) | 60 | install(PROGRAMS org.kde.marble-qt.desktop DESTINATION ${APPS_INSTALL_DIR}) | ||
61 | endif(APPS_INSTALL_DIR) | 61 | endif(APPS_INSTALL_DIR) |