summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorOrangerot <purple@orangerot.dev>2024-08-04 04:50:11 +0200
committerOrangerot <purple@orangerot.dev>2024-08-04 04:50:11 +0200
commitcf013eb832f323cb9de6b114038233b77d115bc8 (patch)
tree91481cc6be6d8622dbeffaabcda42500574b393a /CMakeLists.txt
parent71aee728b7bc5868e1e6ade8fbe615a6fdf132ba (diff)
feat(QJsonModel): compile and first model test
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt37
1 files changed, 30 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8b82d00..4d985e2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,14 +3,37 @@ project(itat_challange_olympics)
set(CMAKE_CXX_STANDARD 17)
-find_package(Qt6 REQUIRED COMPONENTS Core)
+find_package(Qt6 COMPONENTS
+ Core REQUIRED
+ Gui REQUIRED
+ Widgets REQUIRED
+ Network REQUIRED
+ Quick REQUIRED
+)
+
+# SET(MODULES_EXTERNAL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external)
+
+# include_directories(BEFORE ${MODULES_EXTERNAL_DIR})
+
set(CMAKE_AUTORCC ON)
-qt_add_executable(itat_challange_olympics application.qrc main.cpp)
-target_link_libraries(itat_challange_olympics PRIVATE Qt6::Core)
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTOUIC ON)
+qt_add_executable(itat_challange_olympics application.qrc main.cpp
+ external/QJsonModel/include/QJsonModel.hpp
+ external/QJsonModel/QJsonModel.cpp)
-find_package(Qt6 REQUIRED COMPONENTS Quick)
-target_link_libraries(itat_challange_olympics PRIVATE Qt6::Quick)
+target_include_directories(itat_challange_olympics PRIVATE
+ external/QJsonModel/include)
-find_package(Qt6 REQUIRED COMPONENTS Network)
-target_link_libraries(itat_challange_olympics PRIVATE Qt6::Network)
+# add_subdirectory(${MODULES_EXTERNAL_DIR}/QJsonModel)
+# target_link_libraries(itat_challange_olympics PRIVATE Qt6::QJsonModelStatic)
+# target_include_directories(itat_challange_olympics PRIVATE ${CMAKE_BINARY_DIR}/include)
+target_link_libraries(itat_challange_olympics
+PUBLIC
+ Qt6::Core
+ Qt6::Gui
+ Qt6::Widgets
+ Qt6::Network
+ Qt6::Quick
+)