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" .
29 lines
685 B
CMake
29 lines
685 B
CMake
# - Try to find oauth
|
|
#
|
|
# Once done this will define
|
|
# OAuth_FOUND - System has oauth
|
|
# OAuth_INCLUDE_DIRS - The oauth include directories
|
|
# OAuth_LIBRARIES - The libraries needed to use oauth
|
|
|
|
find_package(PkgConfig)
|
|
pkg_check_modules(PC_OAUTH REQUIRED oauth)
|
|
|
|
find_path(OAUTH_INCLUDE_DIR oauth.h
|
|
HINTS ${PC_OAUTH_INCLUDEDIR}
|
|
${PC_OAUTH_INCLUDE_DIRS}
|
|
PATH_SUFFIXES oauth
|
|
)
|
|
|
|
find_library(OAUTH_LIBRARY NAMES oauth
|
|
HINTS ${PC_OAUTH_LIBDIR}
|
|
${PC_OAUTH_LIBRARY_DIRS}
|
|
)
|
|
|
|
mark_as_advanced(OAUTH_INCLUDE_DIR OAUTH_LIBRARY)
|
|
|
|
if(PC_OAUTH_FOUND)
|
|
set(OAuth_FOUND ON)
|
|
set(OAuth_INCLUDE_DIRS ${OAUTH_INCLUDE_DIR})
|
|
set(OAuth_LIBRARIES ${OAUTH_LIBRARY})
|
|
endif(PC_OAUTH_FOUND)
|