comparison CMakeLists.txt @ 1:1ae666fdf9e2

*: initial commit
author Paper <mrpapersonic@gmail.com>
date Tue, 08 Aug 2023 19:49:15 -0400
parents
children 23d0d9319a00
comparison
equal deleted inserted replaced
0:5a76e1b94163 1:1ae666fdf9e2
1 cmake_minimum_required(VERSION 3.5)
2 project(weeaboo)
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/pages/statistics.cpp
11 # src/pages/now_playing.cpp
12 # src/dialog/information.cpp
13 # src/ui_utils.cpp
14 src/string_utils.cpp
15 rc/icons.qrc
16 dep/darkstyle/darkstyle.qrc
17 )
18
19 if(APPLE)
20 list(APPEND SRC_FILES src/sys/osx/dark_theme.mm)
21 elseif(WIN32)
22 list(APPEND SRC_FILES src/sys/win32/dark_theme.cpp)
23 endif()
24
25 add_executable(weeaboo WIN32 MACOSX_BUNDLE ${SRC_FILES})
26 set_property(TARGET weeaboo PROPERTY CXX_STANDARD 20)
27 set_property(TARGET weeaboo PROPERTY AUTOMOC ON)
28 set_property(TARGET weeaboo PROPERTY AUTORCC ON)
29
30 find_package(Qt5 COMPONENTS Widgets REQUIRED)
31 find_package(CURL REQUIRED)
32 target_include_directories(weeaboo PUBLIC ${Qt5Widgets_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE src/include src/icons dep/json)
33 target_link_libraries(weeaboo ${Qt5Widgets_LIBRARIES} ${CURL_LIBRARIES})