Mercurial > minori
diff CMakeLists.txt @ 2:23d0d9319a00
Update
Also converted everything to LF from CRLF
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 12 Aug 2023 03:16:26 -0400 |
parents | 1ae666fdf9e2 |
children | 190ded9438c0 |
line wrap: on
line diff
--- a/CMakeLists.txt Tue Aug 08 19:49:15 2023 -0400 +++ b/CMakeLists.txt Sat Aug 12 03:16:26 2023 -0400 @@ -1,33 +1,36 @@ -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}) +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_link_libraries(weeaboo ${Qt5Widgets_LIBRARIES} ${CURL_LIBRARIES})