Mercurial > minori
annotate CMakeLists.txt @ 9:5c0397762b53
INCOMPLETE: megacommit :)
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Sun, 10 Sep 2023 03:59:16 -0400 |
| parents | 07a9095eaeed |
| children | 4b198a111713 |
| rev | line source |
|---|---|
| 5 | 1 cmake_minimum_required(VERSION 3.16) |
| 2 project(weeaboo LANGUAGES CXX OBJCXX) | |
| 2 | 3 |
| 9 | 4 add_subdirectory(dep/anitomy) |
| 5 | |
| 2 | 6 set(SRC_FILES |
| 9 | 7 # Main entrypoint |
| 2 | 8 src/main.cpp |
| 9 | 9 |
| 10 # Core files and datatype declarations... | |
| 11 src/core/anime.cpp | |
| 12 src/core/anime_db.cpp | |
| 13 src/core/config.cpp | |
| 14 src/core/date.cpp | |
| 15 src/core/filesystem.cpp | |
| 16 src/core/json.cpp | |
| 17 src/core/strings.cpp | |
| 18 src/core/time.cpp | |
| 19 | |
| 20 # GUI stuff | |
| 21 src/gui/window.cpp | |
| 22 src/gui/sidebar.cpp | |
| 23 src/gui/ui_utils.cpp | |
| 24 | |
| 25 # Dialogs | |
| 26 src/gui/dialog/information.cpp | |
| 27 src/gui/dialog/settings.cpp | |
| 28 src/gui/dialog/settings/application.cpp | |
| 29 src/gui/dialog/settings/services.cpp | |
| 30 | |
| 31 # Main window pages | |
| 32 src/gui/pages/anime_list.cpp | |
| 33 src/gui/pages/now_playing.cpp | |
| 34 src/gui/pages/statistics.cpp | |
| 35 | |
| 36 # Services (only AniList for now) | |
| 37 src/services/anilist.cpp | |
| 38 | |
| 39 # Qt resources | |
| 2 | 40 rc/icons.qrc |
| 41 dep/darkstyle/darkstyle.qrc | |
| 42 ) | |
| 43 | |
| 9 | 44 if(APPLE) # Mac OS X (or OS X (or macOS)) |
| 5 | 45 list(APPEND SRC_FILES |
| 46 src/sys/osx/dark_theme.mm | |
| 47 src/sys/osx/filesystem.mm | |
| 48 ) | |
| 9 | 49 elseif(WIN32) # Windows |
| 2 | 50 list(APPEND SRC_FILES src/sys/win32/dark_theme.cpp) |
| 51 endif() | |
| 52 | |
| 9 | 53 add_executable(weeaboo ${SRC_FILES}) |
| 2 | 54 set_property(TARGET weeaboo PROPERTY CXX_STANDARD 20) |
| 55 set_property(TARGET weeaboo PROPERTY AUTOMOC ON) | |
| 56 set_property(TARGET weeaboo PROPERTY AUTORCC ON) | |
| 57 | |
| 58 find_package(Qt5 COMPONENTS Widgets REQUIRED) | |
| 59 find_package(CURL REQUIRED) | |
| 5 | 60 |
| 61 set(LIBRARIES | |
| 62 ${Qt5Widgets_LIBRARIES} | |
| 63 ${CURL_LIBRARIES} | |
| 9 | 64 anitomy |
| 5 | 65 ) |
| 66 | |
| 67 if(APPLE) | |
| 68 find_library(COCOA_LIBRARY Cocoa) | |
| 69 list(APPEND LIBRARIES ${COCOA_LIBRARY}) | |
| 70 endif() | |
| 71 | |
| 9 | 72 target_include_directories(weeaboo PUBLIC ${Qt5Widgets_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE include) |
|
4
5af270662505
Set override functions as override
Paper <mrpapersonic@gmail.com>
parents:
3
diff
changeset
|
73 target_compile_options(weeaboo PRIVATE -Wall -Wextra -Wsuggest-override) |
| 5 | 74 if(APPLE) |
| 75 target_compile_definitions(weeaboo PUBLIC MACOSX) | |
| 9 | 76 elseif(WIN32) |
| 77 target_compile_definitions(weeaboo PUBLIC WIN32) | |
| 5 | 78 endif() |
| 79 target_link_libraries(weeaboo ${LIBRARIES}) |
