-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
45 lines (34 loc) · 941 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
45 lines (34 loc) · 941 Bytes
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
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.5)
project(WeatherApp LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(QT NAMES Qt6 Qt5 COMPONENTS Widgets Charts REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets Charts REQUIRED)
add_executable(WeatherApp
main.cpp
app.cpp
app.h
app.ui
src/weather.cpp
src/weather.h
src/place.cpp
src/place.h
src/weatherinfo.cpp
src/weatherinfo.h
src/config.cpp
src/config.h
src/logic.h
src/weatherexception.cpp
src/weatherexception.h
src/weatherinputdialog.h
src/weatherinputdialog.cpp
src/weatherinputdialog.ui
assets.qrc
)
target_link_libraries(WeatherApp PRIVATE Qt${QT_VERSION_MAJOR}::Widgets)
target_link_libraries(WeatherApp PRIVATE Qt${QT_VERSION_MAJOR}::Charts)
target_link_libraries(WeatherApp PRIVATE cpr)