cmake_minimum_required(VERSION 3.6) project(decoders LANGUAGES C) #find_package(PkgConfig) #pkg_check_modules(DECODERS_PKGCONFIG REQUIRED #) add_library(decoders STATIC src/null.c src/yuv420.c ) target_link_libraries(decoders ${DECODERS_PKGCONFIG_LIBRARIES} ) target_include_directories(decoders PUBLIC $ $ PRIVATE src ${DECODERS_PKGCONFIG_INCLUDE_DIRS} )