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
22 lines
524 B
CMake
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
|
|
)
|