2024-06-27 12:18:32 +02:00
|
|
|
cmake_minimum_required(VERSION 3.28)
|
|
|
|
project(itat_challange_olympics)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
2024-08-04 04:50:11 +02:00
|
|
|
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})
|
|
|
|
|
2024-07-30 10:56:05 +02:00
|
|
|
set(CMAKE_AUTORCC ON)
|
2024-08-04 04:50:11 +02:00
|
|
|
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)
|
2024-07-26 19:17:16 +02:00
|
|
|
|
2024-08-04 04:50:11 +02:00
|
|
|
target_include_directories(itat_challange_olympics PRIVATE
|
|
|
|
external/QJsonModel/include)
|
2024-07-26 17:49:18 +02:00
|
|
|
|
2024-08-04 04:50:11 +02:00
|
|
|
# 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)
|
2024-07-26 19:17:16 +02:00
|
|
|
|
2024-08-04 04:50:11 +02:00
|
|
|
target_link_libraries(itat_challange_olympics
|
|
|
|
PUBLIC
|
|
|
|
Qt6::Core
|
|
|
|
Qt6::Gui
|
|
|
|
Qt6::Widgets
|
|
|
|
Qt6::Network
|
|
|
|
Qt6::Quick
|
|
|
|
)
|