annotate CMakeLists.txt @ 2:23d0d9319a00

Update Also converted everything to LF from CRLF
author Paper <mrpapersonic@gmail.com>
date Sat, 12 Aug 2023 03:16:26 -0400
parents 1ae666fdf9e2
children 190ded9438c0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
1 cmake_minimum_required(VERSION 3.5)
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
2 project(weeaboo)
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
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
13 src/dialog/information.cpp
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
14 src/ui_utils.cpp
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
15 src/string_utils.cpp
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
16 rc/icons.qrc
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
17 dep/darkstyle/darkstyle.qrc
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
18 # src/pages/statistics.cpp
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
19 # src/pages/now_playing.cpp
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
20 )
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
21
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
22 if(APPLE)
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
23 list(APPEND SRC_FILES src/sys/osx/dark_theme.mm)
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
24 elseif(WIN32)
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
25 list(APPEND SRC_FILES src/sys/win32/dark_theme.cpp)
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
26 endif()
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
27
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
28 add_executable(weeaboo WIN32 MACOSX_BUNDLE ${SRC_FILES})
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
29 set_property(TARGET weeaboo PROPERTY CXX_STANDARD 20)
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
30 set_property(TARGET weeaboo PROPERTY AUTOMOC ON)
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
31 set_property(TARGET weeaboo PROPERTY AUTORCC ON)
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
32
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
33 find_package(Qt5 COMPONENTS Widgets REQUIRED)
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
34 find_package(CURL REQUIRED)
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
35 target_include_directories(weeaboo PUBLIC ${Qt5Widgets_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE src/include src/icons)
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
36 target_link_libraries(weeaboo ${Qt5Widgets_LIBRARIES} ${CURL_LIBRARIES})