This commit is contained in:
Nishi 2025-11-18 19:19:51 +09:00
commit a590b2bd4d
Signed by: nishi
GPG key ID: 27EF69B208EB9343
2 changed files with 0 additions and 0 deletions

21
MDEPkgConfig.cmake Normal file
View file

@ -0,0 +1,21 @@
find_package(PkgConfig)
macro(pkg_config_add dest name)
pkg_check_modules(${name} REQUIRED ${name})
target_include_directories(
${dest}
PRIVATE
${${name}_INCLUDE_DIRS}
)
target_link_directories(
${dest}
PRIVATE
${${name}_LIBRARY_DIRS}
)
target_link_libraries(
${dest}
PRIVATE
${${name}_LIBRARIES}
)
endmacro()