Warning, /education/marble/src/apps/marble-qt/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 set(marble_SRCS qtmain.cpp QtMainWindow.cpp)
0002 include_directories(${CMAKE_CURRENT_BINARY_DIR}
0003                     ${CMAKE_CURRENT_SOURCE_DIR}/../marble-ui)
0004 
0005 if(MSVC)
0006   set(marble_SRCS ${marble_SRCS} marble.rc)
0007 endif(MSVC)
0008 
0009 qt_wrap_ui(marble_SRCS ${marble_UI})
0010 
0011 if (WIN32)
0012     add_executable (marble-qt WIN32 ${marble_SRCS})
0013     if (MSVC)
0014           set_target_properties(marble-qt PROPERTIES LINK_FLAGS "/ENTRY:\"mainCRTStartup\"")
0015     endif()
0016 else (WIN32)
0017     if (APPLE)
0018         add_executable (marble-qt ${marble_SRCS})
0019         # For Mac OS X, the executable must be at the root of the bundle's executable folder
0020         INSTALL(TARGETS marble-qt RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS BUNDLE DESTINATION "/Applications/Marble")
0021     else (APPLE)
0022         add_executable (marble-qt ${marble_SRCS})
0023     endif (APPLE)
0024 endif (WIN32)
0025 
0026 target_link_libraries (
0027 marble-qt
0028 Qt5::Widgets
0029 Qt5::PrintSupport
0030 Qt5::Network
0031 marbleui
0032 marblewidget
0033 astro)
0034 
0035 if(WIN32)
0036   target_link_libraries(
0037     marble-qt
0038     ws2_32 
0039     imm32 
0040     winmm
0041     )
0042 endif(WIN32)
0043 
0044 ## this works for win32 only because FindQt does not handle this correct
0045 if(STATIC_BUILD AND WIN32)
0046     target_link_libraries(marble-qt ${QT_PLUGINS_DIR}/imageformats/qjpeg.lib)
0047     target_link_libraries(marble-qt ${QT_PLUGINS_DIR}/imageformats/qsvg.lib)
0048 endif()
0049 
0050 if(WIN32)
0051 install (TARGETS marble-qt RUNTIME DESTINATION .)
0052 else(WIN32)
0053 if (APPLE)
0054   # No need for this when installing to a bundle
0055 else (APPLE)
0056   install (TARGETS marble-qt RUNTIME DESTINATION bin)
0057 endif (APPLE)
0058 endif(WIN32)
0059 
0060 if(APPS_INSTALL_DIR)
0061   install(PROGRAMS org.kde.marble-qt.desktop DESTINATION ${APPS_INSTALL_DIR})
0062 endif(APPS_INSTALL_DIR)