Added support for jpeg(stb) and webp(libwebp)

This commit is contained in:
2025-07-23 03:33:25 +03:00
parent 7a3d59e03e
commit efa80c4c87
5 changed files with 88 additions and 13 deletions

View File

@@ -14,15 +14,16 @@ find_package(DPP REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(SQLITE3 REQUIRED sqlite3)
pkg_check_modules(CAIRO REQUIRED cairo)
pkg_check_modules(WEBP REQUIRED libwebpdecoder)
# Link the pre-installed DPP package.
target_link_libraries(${PROJECT_NAME} ${DPP_LIBRARIES} ${SQLITE3_LIBRARIES}
${CAIRO_LIBRARIES})
${CAIRO_LIBRARIES} ${WEBP_LIBRARIES})
# Include the DPP directories.
target_include_directories(
${PROJECT_NAME} PRIVATE ${DPP_INCLUDE_DIR} ${SQLITE3_INCLUDE_DIR}
${CAIRO_INCLUDE_DIR})
${CAIRO_INCLUDE_DIR} ${WEBP_INCLUDE_DIR})
# Set C++ version
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 20