Files
SOM/plugins/ScreenShotPlugin/CMakeLists.txt

25 lines
598 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
)
set_target_properties(ScreenShotPlugin PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/out/plugins"
)
target_link_libraries(ScreenShotPlugin PRIVATE
Qt::Core
Qt::Gui
Qt::Widgets
)