Files
SOM/CMakeLists.txt
Triplehx3 ac85f22bb5 Implement Plugin Loading.
This commit adds plugin laoding which are then added as sub winows onto the main window.
This commit also adds 2 plugins however more will follow
2025-11-10 21:42:51 +00:00

39 lines
724 B
CMake

cmake_minimum_required(VERSION 3.19)
project(SOM LANGUAGES CXX)
find_package(Qt6 6.5 REQUIRED COMPONENTS Core Widgets)
qt_standard_project_setup()
qt_add_executable(SOM
WIN32 MACOSX_BUNDLE
src/main.cpp
src/mainwindow.cpp
src/mainwindow.h
src/mainwindow.ui
src/interface.h
)
target_link_libraries(SOM
PRIVATE
Qt::Core
Qt::Widgets
)
add_subdirectory(plugins)
include(GNUInstallDirs)
install(TARGETS SOM
BUNDLE DESTINATION .
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
qt_generate_deploy_app_script(
TARGET SOM
OUTPUT_SCRIPT deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
)
install(SCRIPT ${deploy_script})