From 3250fc72f906797f113855cf9dde4e7803a66bd9 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Mon, 27 Jun 2022 00:14:58 +0000 Subject: (From git) Reformat qt ui project git-svn-id: file:///home/arch/svn/epistmool/trunk@5 71f44415-077c-4ad7-a976-72ddbf76608f --- ui.qt/CMakeLists.txt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'ui.qt/CMakeLists.txt') 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 $<$,$>:QT_QML_DEBUG> ) -target_link_libraries(appEpistmoolUI -PRIVATE +target_link_libraries(appEpistmoolUI PRIVATE + Qt6::Network Qt6::Widgets Qt6::Quick ) -- cgit v1.2.3-70-g09d2