aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/unrar/Config.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/unrar/Config.cmake.in')
-rw-r--r--vcpkg/ports/unrar/Config.cmake.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/unrar/Config.cmake.in b/vcpkg/ports/unrar/Config.cmake.in
new file mode 100644
index 0000000..903f8eb
--- /dev/null
+++ b/vcpkg/ports/unrar/Config.cmake.in
@@ -0,0 +1,25 @@
+
+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)
+
+if (EXISTS "${_unrar_root}/bin/unrar.dll")
+
+ add_library(unofficial::unrar::unrar SHARED IMPORTED)
+ set_target_properties(unofficial::unrar::unrar PROPERTIES
+ INTERFACE_INCLUDE_DIRECTORIES "${_unrar_root}/include"
+ IMPORTED_LOCATION_DEBUG "${_unrar_root}/debug/bin/unrar.dll"
+ IMPORTED_IMPLIB_DEBUG "${_unrar_root}/debug/lib/unrar.lib"
+ IMPORTED_LOCATION_RELEASE "${_unrar_root}/bin/unrar.dll"
+ IMPORTED_IMPLIB_RELEASE "${_unrar_root}/lib/unrar.lib"
+ IMPORTED_CONFIGURATIONS "Debug;Release")
+
+ set(unrar_FOUND TRUE)
+
+else()
+
+ set(unrar_FOUND FALSE)
+
+endif()
+
+unset(_unrar_root)