Mercurial > minori
view 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 |
line wrap: on
line source
cmake_minimum_required(VERSION 3.16) project(weeaboo LANGUAGES CXX OBJCXX) set(SRC_FILES src/main.cpp src/config.cpp src/filesystem.cpp src/anilist.cpp src/anime.cpp src/json.cpp src/date.cpp src/time.cpp src/sidebar.cpp src/progress.cpp src/pages/anime_list.cpp src/pages/now_playing.cpp src/pages/statistics.cpp src/dialog/settings.cpp src/dialog/information.cpp src/dialog/settings/services.cpp src/dialog/settings/application.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 src/sys/osx/filesystem.mm ) elseif(WIN32) list(APPEND SRC_FILES src/sys/win32/dark_theme.cpp) endif() add_executable(weeaboo 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) set(LIBRARIES ${Qt5Widgets_LIBRARIES} ${CURL_LIBRARIES} ) if(APPLE) find_library(COCOA_LIBRARY Cocoa) list(APPEND LIBRARIES ${COCOA_LIBRARY}) endif() target_include_directories(weeaboo PUBLIC ${Qt5Widgets_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE src/include src/icons) target_compile_options(weeaboo PRIVATE -Wall -Wextra -Wsuggest-override) if(APPLE) target_compile_definitions(weeaboo PUBLIC MACOSX) endif() target_link_libraries(weeaboo ${LIBRARIES})