aboutsummaryrefslogtreecommitdiff
path: root/ui.qt/CMakeLists.txt
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-27 00:14:58 +0000
committerrtk0c <[email protected]>2022-06-27 00:14:58 +0000
commit3250fc72f906797f113855cf9dde4e7803a66bd9 (patch)
tree2e270e38e6578738ffd9e91b7d5aaa9b4db545cb /ui.qt/CMakeLists.txt
parent8a23aa89a58d3a90d5851b449b5552e1fcdcaded (diff)
(From git) Reformat qt ui project
git-svn-id: file:///home/arch/svn/epistmool/trunk@5 71f44415-077c-4ad7-a976-72ddbf76608f
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
)