vcpkg/ports/unrar/Config.cmake.in
LilyWangLL 591014689f
[unrar] Add vcpkg-cmake-wrapper and usage (#23482)
* [unrar] Add vcpkg-cmake-wrapper and usage

* update version

* [unrar] Add Config.cmake

* update version

* Add license

* update version

* Remove usage

* update version

* Add unofficial

* update version

Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
2022-03-16 13:55:08 -07:00

23 lines
739 B
CMake

get_filename_component(_unrar_root "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_unrar_root "${_unrar_root}" PATH)
get_filename_component(_unrar_root "${_unrar_root}" PATH)
set(_unrar_lib "${_unrar_root}/lib/unrar.lib")
if (EXISTS "${_unrar_lib}")
add_library(unofficial::unrar::unrar INTERFACE IMPORTED)
set_target_properties(unofficial::unrar::unrar PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_unrar_root}/include")
set_target_properties(unofficial::unrar::unrar PROPERTIES IMPORTED_LOCATION "${_unrar_lib}")
set_property(TARGET unofficial::unrar::unrar APPEND PROPERTY IMPORTED_CONFIGURATIONS)
set(unrar_FOUND TRUE)
else()
set(unrar_FOUND FALSE)
endif()
unset(_unrar_lib)
unset(_unrar_root)