Mercurial > minori
view CMakeLists.txt @ 6:1d82f6e04d7d
Update: add first parts to the settings dialog
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 16 Aug 2023 00:49:17 -0400 |
parents | 51ae25154b70 |
children | 07a9095eaeed |
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/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 # src/pages/statistics.cpp # src/pages/now_playing.cpp ) 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 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) 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})