summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 4d985e219d3bbd82bead46ceae4c0fc33d7e2607 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.28)
project(itat_challange_olympics)

set(CMAKE_CXX_STANDARD 17)

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)
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)

target_include_directories(itat_challange_olympics PRIVATE
  external/QJsonModel/include)

# 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
)