CMakeLists.txt
34 lines
| 810 B
| text/plain
|
TextLexer
/ app / CMakeLists.txt
r1331 | include_directories(include) | |||
r21 | ||||
r1331 | FILE (GLOB_RECURSE app_SRCS | |||
include/*.h | ||||
src/*.cpp | ||||
resources/*.qrc | ||||
) | ||||
r21 | ||||
r1331 | QT5_WRAP_UI(UiGenerated_SRCS | |||
ui/MainWindow.ui | ||||
r21 | ) | |||
r1331 | add_executable(sciqlopapp ${app_SRCS} ${UiGenerated_SRCS}) | |||
if(NOT BUILD_SHARED_LIBS) | ||||
add_definitions(-DQT_STATICPLUGIN) | ||||
target_link_libraries(sciqlopapp mockplugin) | ||||
target_link_libraries(sciqlopapp amdaplugin) | ||||
endif() | ||||
target_link_libraries(sciqlopapp | ||||
Qt5::Core | ||||
Qt5::Widgets | ||||
Qt5::Network | ||||
Qt5::PrintSupport | ||||
Qt5::Svg | ||||
sciqlopgui | ||||
sciqlopcore | ||||
r257 | ) | |||
r21 | ||||
r1331 | install(TARGETS sciqlopapp DESTINATION ${CMAKE_INSTALL_BINDIR}) | |||
install(FILES resources/SciQLOP.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications/) | ||||
install(FILES resources/sciqlopLOGO.svg DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/SciQLOP/icons/) | ||||
r21 | ||||