diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/unrar/Config.cmake.in | |
Diffstat (limited to 'vcpkg/ports/unrar/Config.cmake.in')
| -rw-r--r-- | vcpkg/ports/unrar/Config.cmake.in | 25 |
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) |