mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 03:39:17 +01:00
23 lines
645 B
CMake
23 lines
645 B
CMake
|
# - Try to find rhash
|
||
|
#
|
||
|
# Once done this will define
|
||
|
# Rhash_FOUND - System has rhash
|
||
|
# Rhash_INCLUDE_DIRS - The rhash include directories
|
||
|
# Rhash_LIBRARIES - The libraries needed to use rhash
|
||
|
|
||
|
find_path(RHASH_INCLUDE_DIR rhash.h)
|
||
|
find_library(RHASH_LIBRARY rhash)
|
||
|
|
||
|
mark_as_advanced(RHASH_INCLUDE_DIR RHASH_LIBRARY)
|
||
|
|
||
|
if(RHASH_LIBRARY AND RHASH_INCLUDE_DIR)
|
||
|
set(Rhash_FOUND ON)
|
||
|
set(Rhash_LIBRARIES ${RHASH_LIBRARY})
|
||
|
set(Rhash_INCLUDE_DIRS ${RHASH_INCLUDE_DIR})
|
||
|
else()
|
||
|
set(Rhash_FOUND OFF)
|
||
|
if(Rhash_FIND_REQUIRED)
|
||
|
message(FATAL_ERROR "Could not find rhash")
|
||
|
endif(Rhash_FIND_REQUIRED)
|
||
|
endif(RHASH_LIBRARY AND RHASH_INCLUDE_DIR)
|