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