early-access version 2853
This commit is contained in:
22
externals/vcpkg/ports/unrar/Config.cmake.in
vendored
Executable file
22
externals/vcpkg/ports/unrar/Config.cmake.in
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
|
||||
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)
|
||||
Reference in New Issue
Block a user