Files
SOM/plugins/WebBrowserPlugin/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

22 lines
524 B
CMake

cmake_minimum_required(VERSION 3.16)
project(WebBrowserPlugin VERSION 1.0 LANGUAGES C CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include(GNUInstallDirs)
find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Gui WebEngineWidgets Widgets)
qt_add_plugin(WebBrowserPlugin)
target_sources(WebBrowserPlugin PRIVATE
WebBrowserPlugin.cpp WebBrowserPlugin.h
)
target_link_libraries(WebBrowserPlugin PRIVATE
Qt::Core
Qt::Gui
Qt::WebEngineWidgets
Qt::Widgets
)