Mercurial > minori
diff CMakeLists.txt @ 1:1ae666fdf9e2
*: initial commit
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 08 Aug 2023 19:49:15 -0400 |
parents | |
children | 23d0d9319a00 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CMakeLists.txt Tue Aug 08 19:49:15 2023 -0400 @@ -0,0 +1,33 @@ +cmake_minimum_required(VERSION 3.5) +project(weeaboo) + +set(SRC_FILES + src/main.cpp + src/config.cpp + src/filesystem.cpp + src/anilist.cpp + src/anime.cpp +# src/pages/statistics.cpp +# src/pages/now_playing.cpp +# src/dialog/information.cpp +# src/ui_utils.cpp + src/string_utils.cpp + rc/icons.qrc + dep/darkstyle/darkstyle.qrc +) + +if(APPLE) + list(APPEND SRC_FILES src/sys/osx/dark_theme.mm) +elseif(WIN32) + list(APPEND SRC_FILES src/sys/win32/dark_theme.cpp) +endif() + +add_executable(weeaboo WIN32 MACOSX_BUNDLE ${SRC_FILES}) +set_property(TARGET weeaboo PROPERTY CXX_STANDARD 20) +set_property(TARGET weeaboo PROPERTY AUTOMOC ON) +set_property(TARGET weeaboo PROPERTY AUTORCC ON) + +find_package(Qt5 COMPONENTS Widgets REQUIRED) +find_package(CURL REQUIRED) +target_include_directories(weeaboo PUBLIC ${Qt5Widgets_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE src/include src/icons dep/json) +target_link_libraries(weeaboo ${Qt5Widgets_LIBRARIES} ${CURL_LIBRARIES})