Move project files to repo root

This commit is contained in:
Dark Steveneq
2025-10-11 19:22:51 +02:00
parent 557938bb0d
commit c82b457ccc
45 changed files with 89 additions and 3149 deletions

38
QYRComponents/CMakeLists.txt Executable file
View File

@@ -0,0 +1,38 @@
cmake_minimum_required(VERSION 3.16)
project(QYRComponents VERSION 0.1 LANGUAGES CXX)
set(CMAKE_AUTOMOC ON)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(QT_QML_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
find_package(Qt6 6.2 COMPONENTS Quick REQUIRED)
set_source_files_properties(Colors.qml
PROPERTIES QT_QML_SINGLETON_TYPE TRUE)
qt_add_library(QYRComponents STATIC)
qt_add_qml_module(QYRComponents
URI QYRComponents
VERSION 1.0
RESOURCE_PREFIX /qt/qml
QML_FILES Button.qml
QML_FILES Colors.qml
QML_FILES ApplicationWindow.qml
QML_FILES CheckBox.qml
QML_FILES Slider.qml
QML_FILES Label.qml
# SOURCES qyrcomponents.cpp qyrcomponents.h
)
set_target_properties(QYRComponents PROPERTIES
WIN32_EXECUTABLE TRUE
)
target_compile_definitions(QYRComponents
PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)
target_link_libraries(QYRComponents
PRIVATE Qt6::Quick)
target_include_directories(QYRComponents PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})