Skip to content

Commit

Permalink
use pkg-config to find libwebp and libwebpdemux during builds
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel committed Mar 22, 2024
1 parent 4249f36 commit ab67bfe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 74 deletions.
35 changes: 0 additions & 35 deletions cmake/webp-config.cmake

This file was deleted.

35 changes: 0 additions & 35 deletions cmake/webpdemux-config.cmake

This file was deleted.

7 changes: 3 additions & 4 deletions webp-viewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ else ()
endif ()

# libwebp
set(webp_DIR "../cmake/" )
find_package (webp REQUIRED)
find_package(PkgConfig)
pkg_search_module (WEBP REQUIRED libwebp)
if (WEBP_FOUND)
include_directories(${WEBP_INCLUDE_DIRS})
target_link_libraries (webp-viewer ${WEBP_LIBRARIES})
Expand All @@ -75,8 +75,7 @@ else ()
endif ()

# libwebpdemux
set(webpdemux_DIR "../cmake/" )
find_package (webpdemux REQUIRED)
pkg_search_module (WEBPDEMUX REQUIRED libwebpdemux)
if (WEBPDEMUX_FOUND)
include_directories(${WEBPDEMUX_INCLUDE_DIRS})
target_link_libraries (webp-viewer ${WEBPDEMUX_LIBRARIES})
Expand Down

0 comments on commit ab67bfe

Please sign in to comment.