CMakeLists.txt
61 lines
| 1.5 KiB
| text/plain
|
TextLexer
/ app / CMakeLists.txt
r1331 | include_directories(include) | |||
r21 | ||||
r1331 | FILE (GLOB_RECURSE app_SRCS | |||
include/*.h | ||||
r1477 | src/MainWindow.cpp | |||
src/toolbar.cpp | ||||
r1331 | resources/*.qrc | |||
) | ||||
r21 | ||||
r1331 | QT5_WRAP_UI(UiGenerated_SRCS | |||
ui/MainWindow.ui | ||||
r21 | ) | |||
r1477 | add_library(sciqlopapp ${UiGenerated_SRCS} ${app_SRCS}) | |||
r1456 | if(ENABLE_WIN32_CONSOLE) | |||
r1477 | add_executable(sciqlop src/Main.cpp) | |||
r1456 | else() | |||
r1477 | add_executable(sciqlop WIN32 src/Main.cpp) | |||
r1456 | 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 | ||||
r1477 | target_link_libraries(sciqlop | |||
sciqlopapp | ||||
) | ||||
install(TARGETS sciqlopapp | ||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||||
install(TARGETS sciqlop DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||||
r1331 | 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 | ||||
r1477 | add_subdirectory(PySide2-bindings) | |||