Warning, /education/marble/src/apps/marble-ui/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set(marble_SRCS ControlView.cpp MarbleTest.cpp)
0002 include_directories(${CMAKE_CURRENT_BINARY_DIR})
0003
0004 if(MSVC)
0005 set(marble_SRCS ${marble_SRCS} marble.qrc)
0006 endif(MSVC)
0007
0008 qt_add_resources(marble_SRCS marble.qrc)
0009
0010 qt_wrap_ui(marble_SRCS ${marble_UI})
0011
0012 add_library (marbleui STATIC ${marble_SRCS})
0013
0014 target_link_libraries (
0015 marbleui
0016 PUBLIC
0017 marblewidget
0018 Qt5::Widgets
0019 Qt5::PrintSupport
0020 PRIVATE
0021 Qt5::Network
0022 )
0023 if (NOT MARBLE_NO_DBUS)
0024 target_link_libraries( marbleui
0025 PRIVATE
0026 Qt5::DBus
0027 )
0028 endif ()
0029
0030 if(WIN32)
0031 # TODO: PUBLIC or can be PRIVATE?
0032 target_link_libraries(
0033 marbleui
0034 PUBLIC
0035 ws2_32
0036 imm32
0037 winmm
0038 )
0039 endif(WIN32)
0040
0041 ## this works for win32 only because FindQt does not handle this correct
0042 if(STATIC_BUILD AND WIN32)
0043 # TODO: PUBLIC or can be PRIVATE?
0044 target_link_libraries(marbleui PUBLIC ${QT_PLUGINS_DIR}/imageformats/qjpeg.lib)
0045 target_link_libraries(marbleui PUBLIC ${QT_PLUGINS_DIR}/imageformats/qsvg.lib)
0046 endif()