aboutsummaryrefslogtreecommitdiff
path: root/ui.qt/CMakeLists.txt
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-27 00:09:44 +0000
committerrtk0c <[email protected]>2022-06-27 00:09:44 +0000
commit753c26d320e894069157bd401f7779ad07073d7c (patch)
tree8dc49b0b68285396c6b619db6c1443b1ecc5abd5 /ui.qt/CMakeLists.txt
parent21aa12d231ab70529322bab325df8293da63dc8d (diff)
(From git) Initial Qt GUI setup
git-svn-id: file:///home/arch/svn/epistmool/trunk@2 71f44415-077c-4ad7-a976-72ddbf76608f
Diffstat (limited to 'ui.qt/CMakeLists.txt')
-rw-r--r--ui.qt/CMakeLists.txt43
1 files changed, 43 insertions, 0 deletions
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
+ $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>
+)
+target_link_libraries(appEpistmoolUI
+PRIVATE
+ Qt6::Quick
+)