CMakeLists.txt
47 lines
| 1.2 KiB
| 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 | ) | |||
r1456 | if(ENABLE_WIN32_CONSOLE) | |||
add_executable(sciqlopapp ${app_SRCS} ${UiGenerated_SRCS}) | ||||
else() | ||||
add_executable(sciqlopapp WIN32 ${app_SRCS} ${UiGenerated_SRCS}) | ||||
endif() | ||||
r1331 | if(NOT BUILD_SHARED_LIBS) | |||
add_definitions(-DQT_STATICPLUGIN) | ||||
r1420 | if(BUILD_PLUGINS) | |||
r1440 | #target_link_libraries(sciqlopapp mockplugin) | |||
r1423 | #target_link_libraries(sciqlopapp amdaplugin) | |||
target_link_libraries(sciqlopapp python_providers) | ||||
r1420 | endif() | |||
endif() | ||||
if(NOT BUILD_PLUGINS) | ||||
add_definitions(-DSQP_NO_PLUGINS) | ||||
r1331 | 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/) | ||||
r1402 | install(FILES resources/SciQLOP.appdata.xml DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo/) | |||
r1331 | install(FILES resources/sciqlopLOGO.svg DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/SciQLOP/icons/) | |||
r21 | ||||