Mercurial > minori
annotate CMakeLists.txt @ 6:1d82f6e04d7d
Update: add first parts to the settings dialog
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 16 Aug 2023 00:49:17 -0400 |
parents | 51ae25154b70 |
children | 07a9095eaeed |
rev | line source |
---|---|
5 | 1 cmake_minimum_required(VERSION 3.16) |
2 project(weeaboo LANGUAGES CXX OBJCXX) | |
2 | 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 | |
6
1d82f6e04d7d
Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents:
5
diff
changeset
|
13 src/sidebar.cpp |
1d82f6e04d7d
Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents:
5
diff
changeset
|
14 src/progress.cpp |
1d82f6e04d7d
Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents:
5
diff
changeset
|
15 src/dialog/settings.cpp |
2 | 16 src/dialog/information.cpp |
6
1d82f6e04d7d
Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents:
5
diff
changeset
|
17 src/dialog/settings/services.cpp |
1d82f6e04d7d
Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents:
5
diff
changeset
|
18 src/dialog/settings/application.cpp |
2 | 19 src/ui_utils.cpp |
20 src/string_utils.cpp | |
21 rc/icons.qrc | |
22 dep/darkstyle/darkstyle.qrc | |
23 # src/pages/statistics.cpp | |
24 # src/pages/now_playing.cpp | |
25 ) | |
26 | |
27 if(APPLE) | |
5 | 28 list(APPEND SRC_FILES |
29 src/sys/osx/dark_theme.mm | |
30 src/sys/osx/filesystem.mm | |
31 ) | |
2 | 32 elseif(WIN32) |
33 list(APPEND SRC_FILES src/sys/win32/dark_theme.cpp) | |
34 endif() | |
35 | |
36 add_executable(weeaboo WIN32 MACOSX_BUNDLE ${SRC_FILES}) | |
37 set_property(TARGET weeaboo PROPERTY CXX_STANDARD 20) | |
38 set_property(TARGET weeaboo PROPERTY AUTOMOC ON) | |
39 set_property(TARGET weeaboo PROPERTY AUTORCC ON) | |
40 | |
41 find_package(Qt5 COMPONENTS Widgets REQUIRED) | |
42 find_package(CURL REQUIRED) | |
5 | 43 |
44 set(LIBRARIES | |
45 ${Qt5Widgets_LIBRARIES} | |
46 ${CURL_LIBRARIES} | |
47 ) | |
48 | |
49 if(APPLE) | |
50 find_library(COCOA_LIBRARY Cocoa) | |
51 list(APPEND LIBRARIES ${COCOA_LIBRARY}) | |
52 endif() | |
53 | |
2 | 54 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
|
55 target_compile_options(weeaboo PRIVATE -Wall -Wextra -Wsuggest-override) |
5 | 56 if(APPLE) |
57 target_compile_definitions(weeaboo PUBLIC MACOSX) | |
58 endif() | |
59 target_link_libraries(weeaboo ${LIBRARIES}) |