annotate CMakeLists.txt @ 8:b1f73678ef61

update text paragraphs are now their own objects, as they should be
author Paper <mrpapersonic@gmail.com>
date Sat, 26 Aug 2023 03:39:34 -0400
parents 07a9095eaeed
children 5c0397762b53
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
1 cmake_minimum_required(VERSION 3.16)
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
2 project(weeaboo LANGUAGES CXX OBJCXX)
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
3
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
4 set(SRC_FILES
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
5 src/main.cpp
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
6 src/config.cpp
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
7 src/filesystem.cpp
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
8 src/anilist.cpp
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
9 src/anime.cpp
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
10 src/json.cpp
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
11 src/date.cpp
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
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
Paper <mrpapersonic@gmail.com>
parents: 6
diff changeset
15 src/pages/anime_list.cpp
Paper <mrpapersonic@gmail.com>
parents: 6
diff changeset
16 src/pages/now_playing.cpp
Paper <mrpapersonic@gmail.com>
parents: 6
diff changeset
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
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
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
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
22 src/ui_utils.cpp
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
23 src/string_utils.cpp
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
24 rc/icons.qrc
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
25 dep/darkstyle/darkstyle.qrc
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
26 )
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
27
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
28 if(APPLE)
5
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
29 list(APPEND SRC_FILES
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
30 src/sys/osx/dark_theme.mm
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
31 src/sys/osx/filesystem.mm
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
32 )
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
33 elseif(WIN32)
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
34 list(APPEND SRC_FILES src/sys/win32/dark_theme.cpp)
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
35 endif()
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
36
7
Paper <mrpapersonic@gmail.com>
parents: 6
diff changeset
37 add_executable(weeaboo MACOSX_BUNDLE ${SRC_FILES})
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
38 set_property(TARGET weeaboo PROPERTY CXX_STANDARD 20)
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
39 set_property(TARGET weeaboo PROPERTY AUTOMOC ON)
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
40 set_property(TARGET weeaboo PROPERTY AUTORCC ON)
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
41
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
42 find_package(Qt5 COMPONENTS Widgets REQUIRED)
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
43 find_package(CURL REQUIRED)
5
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
44
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
45 set(LIBRARIES
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
46 ${Qt5Widgets_LIBRARIES}
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
47 ${CURL_LIBRARIES}
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
48 )
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
49
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
50 if(APPLE)
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
51 find_library(COCOA_LIBRARY Cocoa)
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
52 list(APPEND LIBRARIES ${COCOA_LIBRARY})
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
53 endif()
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
54
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
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
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
57 if(APPLE)
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
58 target_compile_definitions(weeaboo PUBLIC MACOSX)
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
59 endif()
51ae25154b70 Fix OS X support code
Paper <mrpapersonic@gmail.com>
parents: 4
diff changeset
60 target_link_libraries(weeaboo ${LIBRARIES})