aboutsummaryrefslogtreecommitdiff
path: root/ui.qt/CMakeLists.txt
diff options
context:
space:
mode:
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
+)