vcpkg/ports/brotli/vcpkg-cmake-wrapper.cmake

12 lines
680 B
CMake
Raw Normal View History

2018-08-29 21:00:23 -07:00
_find_package(${ARGS})
foreach(T brotlicommon brotlidec brotlienc)
if(TARGET unofficial::brotli::${T} AND NOT TARGET unofficial::brotli::${T}-static)
_add_library(unofficial::brotli::${T}-static INTERFACE IMPORTED)
set_target_properties(unofficial::brotli::${T}-static PROPERTIES INTERFACE_LINK_LIBRARIES "unofficial::brotli::${T}")
endif()
if(NOT TARGET unofficial::brotli::${T} AND TARGET unofficial::brotli::${T}-static)
_add_library(unofficial::brotli::${T} INTERFACE IMPORTED)
set_target_properties(unofficial::brotli::${T} PROPERTIES INTERFACE_LINK_LIBRARIES "unofficial::brotli::${T}-static")
endif()
endforeach()