Mercurial > minori
diff CMakeLists.txt @ 64:fe719c109dbc
*: update
1. add media tracking ability, and it displays info on the `now playing` page
2. the `now playing` page now actually shows something
3. renamed every page class to be more accurate to what it is
4. ...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 01 Oct 2023 23:15:43 -0400 |
parents | 3d2decf093bb |
children | 6481c5aed3e1 |
line wrap: on
line diff
--- a/CMakeLists.txt Sun Oct 01 06:39:47 2023 -0400 +++ b/CMakeLists.txt Sun Oct 01 23:15:43 2023 -0400 @@ -7,8 +7,15 @@ enable_language(OBJCXX) endif() +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") +set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") +set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") + +option(BUILD_SHARED_LIBS "Build using shared libraries" ON) +option(USE_QT6 "Build with Qt 6 instead of Qt 5" OFF) + add_subdirectory(dep/anitomy) -# add_subdirectory(dep/animia) +add_subdirectory(dep/animia) add_subdirectory(dep/pugixml) # Fix for mingw64 @@ -24,6 +31,7 @@ set(LIBRARIES ${CURL_LIBRARIES} anitomy + animia ) if(USE_QT6) @@ -67,6 +75,7 @@ # Custom widgets + src/gui/widgets/anime_info.cpp src/gui/widgets/sidebar.cpp src/gui/widgets/text.cpp src/gui/widgets/optional_date.cpp @@ -86,6 +95,9 @@ src/services/services.cpp src/services/anilist.cpp + # Tracking + src/track/media.cpp + # Qt resources rc/icons.qrc dep/darkstyle/darkstyle.qrc @@ -105,13 +117,13 @@ set_property(TARGET minori PROPERTY AUTOMOC ON) set_property(TARGET minori PROPERTY AUTORCC ON) -target_include_directories(minori PUBLIC ${CURL_INCLUDE_DIRS} PRIVATE include dep/pugixml/src dep/animia/include) +target_include_directories(minori PUBLIC ${CURL_INCLUDE_DIRS} PRIVATE include dep/pugixml/src dep/animia/include dep/anitomy) if(USE_QT6) target_include_directories(minori PUBLIC ${Qt6Widgets_INCLUDE_DIRS}) else() target_include_directories(minori PUBLIC ${Qt5Widgets_INCLUDE_DIRS}) endif() -target_compile_options(minori PRIVATE -Wall -Wpedantic -Wextra -Wsuggest-override) +target_compile_options(minori PRIVATE -Wall -Wpedantic -Wextra -Wsuggest-override -Wold-style-cast) if(APPLE) target_compile_definitions(minori PUBLIC MACOSX) elseif(WIN32)