18 lines
397 B
CMake

cmake_minimum_required(VERSION 3.30)
project(libavif-test C)
find_package(libavif CONFIG REQUIRED)
add_executable(main main.c)
target_link_libraries(main PRIVATE
$<TARGET_NAME:avif>
)
find_package(PkgConfig REQUIRED)
pkg_check_modules(libavif_pc libavif REQUIRED IMPORTED_TARGET)
add_executable(main-pkconfig main.c)
target_link_libraries(main-pkconfig PRIVATE
PkgConfig::libavif_pc
)