mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
a5cc950192
Find libraries using cmake/Find*.cmake scripts Replace Version String with CMake implementation based on CMake Version and git ref-parse. Compile manpages in man/CMakeLists.txt to build: cmake . make manpage Set debug and release versions with cmake -DCMAKE_BUILD_TYPE=Debug and cmake -DCMAKE_BUILD_TYPE=Release Build and install process can be: cmake -DCMAKE_BUILD_TYPE=Release . make make install More build options can be found with cmake . make help Codeblocks project can be generated using cmake -G "CodeBlocks - Unix Makefiles" .
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)
|