Mercurial > minori
annotate CMakeLists.txt @ 4:5af270662505
Set override functions as override
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 12 Aug 2023 12:08:16 -0400 |
parents | 190ded9438c0 |
children | 51ae25154b70 |
rev | line source |
---|---|
2 | 1 cmake_minimum_required(VERSION 3.5) |
2 project(weeaboo) | |
3 | |
4 set(SRC_FILES | |
5 src/main.cpp | |
6 src/config.cpp | |
7 src/filesystem.cpp | |
8 src/anilist.cpp | |
9 src/anime.cpp | |
10 src/json.cpp | |
11 src/date.cpp | |
12 src/time.cpp | |
13 src/dialog/information.cpp | |
14 src/ui_utils.cpp | |
15 src/string_utils.cpp | |
16 rc/icons.qrc | |
17 dep/darkstyle/darkstyle.qrc | |
18 # src/pages/statistics.cpp | |
19 # src/pages/now_playing.cpp | |
20 ) | |
21 | |
22 if(APPLE) | |
23 list(APPEND SRC_FILES src/sys/osx/dark_theme.mm) | |
24 elseif(WIN32) | |
25 list(APPEND SRC_FILES src/sys/win32/dark_theme.cpp) | |
26 endif() | |
27 | |
28 add_executable(weeaboo WIN32 MACOSX_BUNDLE ${SRC_FILES}) | |
29 set_property(TARGET weeaboo PROPERTY CXX_STANDARD 20) | |
30 set_property(TARGET weeaboo PROPERTY AUTOMOC ON) | |
31 set_property(TARGET weeaboo PROPERTY AUTORCC ON) | |
32 | |
33 find_package(Qt5 COMPONENTS Widgets REQUIRED) | |
34 find_package(CURL REQUIRED) | |
35 target_include_directories(weeaboo PUBLIC ${Qt5Widgets_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE src/include src/icons) | |
4
5af270662505
Set override functions as override
Paper <mrpapersonic@gmail.com>
parents:
3
diff
changeset
|
36 target_compile_options(weeaboo PRIVATE -Wall -Wextra -Wsuggest-override) |
2 | 37 target_link_libraries(weeaboo ${Qt5Widgets_LIBRARIES} ${CURL_LIBRARIES}) |