-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
65 lines (53 loc) · 1.72 KB
/
CMakeLists.txt
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
cmake_minimum_required(VERSION 3.5)
project(Qomodoro VERSION 0.3)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
SET(CMAKE_AUTOUIC_SEARCH_PATHS ${CMAKE_CURRENT_SOURCE_DIR}/ui)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include(QtCommon)
fix_project_version()
add_project_meta(META_FILES_TO_INCLUDE)
find_package(Qt6 COMPONENTS Widgets Charts REQUIRED)
include_directories(include)
set(SOURCE_FILES
src/main.cpp
src/MainWindow.cpp
src/TopBarTitle.cpp
src/Pomodoro.cpp
src/DataIO.cpp
src/StatsWindow.cpp
src/OptionsWindow.cpp
src/TimerWindow.cpp
src/SlidingStackedWidget.cpp
src/charts/WeekChart.cpp
src/charts/DayChart.cpp
include/MainWindow.h
include/TopBarTitle.h
include/Pomodoro.h
include/DataIO.h
include/StatsWindow.h
include/OptionsWindow.h
include/TimerWindow.h
include/SlidingStackedWidget.h
include/charts/WeekChart.h
include/charts/DayChart.h
vendor/json/include/nlohmann/json.hpp
ui/MainWindow.ui
ui/StatsWindow.ui
ui/OptionsWindow.ui
ui/TimerWindow.ui
)
set(RESOURCE_FILES resources.qrc)
set(app_WINRC qomodoro.rc)
set_property(SOURCE qomodoro.rc APPEND PROPERTY
OBJECT_DEPENDS ${PROJECT_SOURCE_DIR}/images/icon.ico
)
add_executable(${PROJECT_NAME} ${OS_BUNDLE} # Expands to WIN32 or MACOS_BUNDLE depending on OS
${SOURCE_FILES} ${RESOURCE_FILES} ${app_WINRC}
)
target_link_libraries(${PROJECT_NAME} Qt6::Widgets Qt6::Charts)
install(TARGETS ${PROJECT_NAME} DESTINATION bin)