Mercurial > minori
view CMakeLists.txt @ 3:190ded9438c0
Fix many warnings
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 12 Aug 2023 11:57:25 -0400 |
parents | 23d0d9319a00 |
children | 5af270662505 |
line wrap: on
line source
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/json.cpp src/date.cpp src/time.cpp src/dialog/information.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) 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) target_compile_options(weeaboo PRIVATE -Wall -Wextra) target_link_libraries(weeaboo ${Qt5Widgets_LIBRARIES} ${CURL_LIBRARIES})