-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
43 lines (34 loc) · 1.15 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
cmake_minimum_required(VERSION 3.16)
project(qmlcutieplugin VERSION 1.0 LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Gui Qml Quick)
pkg_check_modules(ATMOSPHERE atmosphere REQUIRED IMPORTED_TARGET)
qt_standard_project_setup()
set(plugin_SOURCES
src/plugin.cpp src/plugin.h
src/iconprovider.cpp src/iconprovider.h)
qt6_add_qml_module(qmlcutieplugin
URI Cutie
VERSION ${PROJECT_VERSION}
PLUGIN_TARGET qmlcutieplugin
NO_GENERATE_PLUGIN_SOURCE
SOURCES
${plugin_SOURCES}
)
target_include_directories(qmlcutieplugin PUBLIC
src
)
target_link_libraries(qmlcutieplugin PUBLIC
Qt::Core
Qt::Gui
Qt::Qml
Qt::Quick
PkgConfig::ATMOSPHERE
)
install(TARGETS qmlcutieplugin
RUNTIME DESTINATION "${CMAKE_INSTALL_LIBDIR}/qt${QT_VERSION_MAJOR}/qml/Cutie"
BUNDLE DESTINATION "${CMAKE_INSTALL_LIBDIR}/qt${QT_VERSION_MAJOR}/qml/Cutie"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}/qt${QT_VERSION_MAJOR}/qml/Cutie"
)
install(DIRECTORY src/qml/Cutie DESTINATION "${CMAKE_INSTALL_LIBDIR}/qt${QT_VERSION_MAJOR}/qml")