aboutsummaryrefslogtreecommitdiffstats
path: root/src/clapcontrols/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/clapcontrols/CMakeLists.txt')
-rw-r--r--src/clapcontrols/CMakeLists.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/clapcontrols/CMakeLists.txt b/src/clapcontrols/CMakeLists.txt
new file mode 100644
index 0000000..e410e94
--- /dev/null
+++ b/src/clapcontrols/CMakeLists.txt
@@ -0,0 +1,28 @@
+# Copyright (C) 2024 The Qt Company Ltd.
+# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Qt-Commercial
+
+file(REAL_PATH "Clap/Controls" QML_OUTPUT_DIR BASE_DIRECTORY ${MODULE_OUT})
+qt_add_qml_module(ClapControls
+ URI "Clap.Controls"
+ VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}"
+ QML_FILES
+ "ClapWindow.qml"
+ "ClapDial.qml"
+ "ClapKeys.qml"
+ "ClapMenu.qml"
+ "ClapMenuBar.qml"
+ "WindowDragHandler.qml"
+ SOURCES
+ qtclapstyle.h qtclapstyle.cpp
+ RESOURCES
+ images/qt.svg
+ themes/wayn.toml
+ fonts/IBMPlexMono-Medium.ttf
+ OUTPUT_DIRECTORY ${QML_OUTPUT_DIR}
+ CLASS_NAME ClapControlsPlugin
+ PLUGIN_TARGET clapcontrolsplugin
+)
+
+target_link_libraries(ClapControls PUBLIC
+ Qt6::Quick
+)