Files
SOM/plugins/CalculatorPlugin/CMakeLists.txt

26 lines
622 B
CMake

cmake_minimum_required(VERSION 3.16)
project(CalculatorPlugin 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(CalculatorPlugin)
target_sources(CalculatorPlugin PRIVATE
CalculatorPlugin.cpp CalculatorPlugin.h
button.cpp button.h
)
set_target_properties(CalculatorPlugin PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/out/plugins"
)
target_link_libraries(CalculatorPlugin PRIVATE
Qt::Core
Qt::Gui
Qt::Widgets
)