21 lines
482 B
CMake
21 lines
482 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
project(ScreenShotPlugin 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 Widgets)
|
|
|
|
qt_add_plugin(ScreenShotPlugin)
|
|
target_sources(ScreenShotPlugin PRIVATE
|
|
ScreenShotPlugin.cpp ScreenShotPlugin.h
|
|
)
|
|
|
|
target_link_libraries(ScreenShotPlugin PRIVATE
|
|
Qt::Core
|
|
Qt::Gui
|
|
Qt::Widgets
|
|
)
|