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.txt18
1 files changed, 10 insertions, 8 deletions
diff --git a/ui.qt/CMakeLists.txt b/ui.qt/CMakeLists.txt
index c16e915..c235133 100644
--- a/ui.qt/CMakeLists.txt
+++ b/ui.qt/CMakeLists.txt
@@ -2,22 +2,25 @@ cmake_minimum_required(VERSION 3.16)
project(EpistmoolUI VERSION 0.1 LANGUAGES CXX)
set(CMAKE_AUTOMOC ON)
+set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
-find_package(Qt6 6.2 COMPONENTS Widgets Quick REQUIRED)
+find_package(Qt6 6.2 COMPONENTS Network Widgets Quick REQUIRED)
qt_add_executable(appEpistmoolUI
source/main.cpp
source/fwd.hpp
- source/knowledgefragment.hpp source/knowledgefragment.cpp
- source/keyword.hpp source/keyword.cpp
+ source/DatabaseClient.hpp source/DatabaseClient.cpp
+ source/DatabaseServer.hpp source/DatabaseServer.cpp
+ source/KnowledgeFragment.hpp source/KnowledgeFragment.cpp
+ source/Keyword.hpp source/Keyword.cpp
)
qt_add_qml_module(appEpistmoolUI
URI EpistmoolUI
VERSION 1.0
SOURCES
- source/document.hpp source/document.cpp
+ source/Document.hpp source/Document.cpp
QML_FILES
source/qml/MainWindow.qml
source/qml/Navigator.qml
@@ -34,12 +37,11 @@ set_target_properties(appEpistmoolUI PROPERTIES
)
target_include_directories(appEpistmoolUI PUBLIC source)
-target_compile_definitions(appEpistmoolUI
-PRIVATE
+target_compile_definitions(appEpistmoolUI PRIVATE
$<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>
)
-target_link_libraries(appEpistmoolUI
-PRIVATE
+target_link_libraries(appEpistmoolUI PRIVATE
+ Qt6::Network
Qt6::Widgets
Qt6::Quick
)