forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[unrar] Add vcpkg-cmake-wrapper and usage (microsoft#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 <[email protected]>
- Loading branch information
1 parent
61f40a1
commit 5910146
Showing
5 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
{ | ||
"name": "unrar", | ||
"version": "5.8.1", | ||
"port-version": 2, | ||
"port-version": 3, | ||
"description": "rarlab's unrar library", | ||
"homepage": "https://www.rarlab.com", | ||
"license": null, | ||
"supports": "windows & !uwp & !arm & !static" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters