thedesk/plugins/ScreenshotPlugin/CMakeLists.txt
2022-06-05 17:22:36 +10:00

28 lines
576 B
CMake

cmake_minimum_required(VERSION 3.4.0)
find_package(Qt6 REQUIRED COMPONENTS Widgets Svg)
find_package(libcontemporary)
set(SOURCES
eventhandler.cpp
penbutton.cpp
plugin.cpp
screenshotwindow.cpp
screenshotwindow.ui
screenshot_resources.qrc
)
set(HEADERS
eventhandler.h
penbutton.h
plugin.h
screenshotwindow.h
)
set(PLUGIN_NAME screenshot)
add_plugin_td(${PLUGIN_NAME})
target_sources(plugin-${PLUGIN_NAME} PRIVATE ${SOURCES} ${HEADERS})
target_link_libraries(plugin-${PLUGIN_NAME} Qt6::Widgets Qt6::Svg libcontemporary libthedesk)