Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-DUNRAR config option to allow using libunrar + unrar instead of bund…
…led sources or not using unrar at all (touch #977790)
- Loading branch information
Showing
8 changed files
with
265 additions
and
85 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# - Find unrar | ||
# Find the native UNRAR includes and library | ||
# | ||
# UNRAR_INCLUDE_DIR - where to find rar.hpp, etc. | ||
# UNRAR_LIBRARIES - List of libraries when using unrar. | ||
# UNRAR_FOUND - True if unrar found. | ||
|
||
|
||
IF (UNRAR_INCLUDE_DIR) | ||
# Already in cache, be silent | ||
SET(UNRAR_FIND_QUIETLY TRUE) | ||
ENDIF (UNRAR_INCLUDE_DIR) | ||
|
||
FIND_PATH(UNRAR_INCLUDE_DIR rar.hpp PATH_SUFFIXES unrar) | ||
|
||
SET(UNRAR_NAMES unrar) | ||
FIND_LIBRARY(UNRAR_LIBRARY NAMES ${UNRAR_NAMES} ) | ||
|
||
# handle the QUIETLY and REQUIRED arguments and set UNRAR_FOUND to TRUE if | ||
# all listed variables are TRUE | ||
INCLUDE(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Unrar DEFAULT_MSG UNRAR_LIBRARY UNRAR_INCLUDE_DIR) | ||
|
||
IF(UNRAR_FOUND) | ||
SET( UNRAR_LIBRARIES ${UNRAR_LIBRARY} ) | ||
ELSE(UNRAR_FOUND) | ||
SET( UNRAR_LIBRARIES ) | ||
ENDIF(UNRAR_FOUND) | ||
|
||
MARK_AS_ADVANCED( UNRAR_LIBRARY UNRAR_INCLUDE_DIR ) |
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
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
Oops, something went wrong.