From 753c26d320e894069157bd401f7779ad07073d7c Mon Sep 17 00:00:00 2001 From: rtk0c Date: Mon, 27 Jun 2022 00:09:44 +0000 Subject: (From git) Initial Qt GUI setup git-svn-id: file:///home/arch/svn/epistmool/trunk@2 71f44415-077c-4ad7-a976-72ddbf76608f --- ui.qt/CMakeLists.txt | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 ui.qt/CMakeLists.txt (limited to 'ui.qt/CMakeLists.txt') diff --git a/ui.qt/CMakeLists.txt b/ui.qt/CMakeLists.txt new file mode 100644 index 0000000..7d7624a --- /dev/null +++ b/ui.qt/CMakeLists.txt @@ -0,0 +1,43 @@ +cmake_minimum_required(VERSION 3.16) +project(EpistmoolUI VERSION 0.1 LANGUAGES CXX) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +find_package(Qt6 6.2 COMPONENTS Quick REQUIRED) + +qt_add_executable(appEpistmoolUI + source/main.cpp + source/fwd.hpp + source/document.hpp source/document.cpp + source/knowledgefragment.hpp source/knowledgefragment.cpp + source/keyword.hpp source/keyword.cpp +) + + +qt_add_qml_module(appEpistmoolUI + URI EpistmoolUI + VERSION 1.0 + QML_FILES + source/qml/MainWindow.qml + source/qml/GoToKnowledge.qml + source/qml/Document.qml +) + +set_target_properties(appEpistmoolUI PROPERTIES + MACOSX_BUNDLE_GUI_IDENTIFIER rtk0cium0001.github.io + MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} + MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} + MACOSX_BUNDLE TRUE + WIN32_EXECUTABLE TRUE +) + +target_include_directories(appEpistmoolUI PUBLIC source) +target_compile_definitions(appEpistmoolUI +PRIVATE + $<$,$>:QT_QML_DEBUG> +) +target_link_libraries(appEpistmoolUI +PRIVATE + Qt6::Quick +) -- cgit v1.2.3-70-g09d2