mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-14 11:03:44 +08:00
log4cplus detection under macports
This commit is contained in:
35
src/cmake_modules/Findlog4cplus.cmake
Normal file
35
src/cmake_modules/Findlog4cplus.cmake
Normal file
@@ -0,0 +1,35 @@
|
||||
# - Try to find log4cplus
|
||||
# Once done, this will define
|
||||
#
|
||||
# log4cplus_FOUND - system has log4cplus
|
||||
# log4cplus_INCLUDE_DIRS - the log4cplus include directories
|
||||
# log4cplus_LIBRARIES - link these to use log4cplus
|
||||
|
||||
#libfind_pkg_check_modules(log4cplus_PKGCONF log4cplus)
|
||||
|
||||
# Include dir
|
||||
find_path(log4cplus_INCLUDE_DIR
|
||||
NAMES log4cplus/version.h
|
||||
HINTS "/usr/include"
|
||||
"/usr/include/log4cplus"
|
||||
"/usr/local/include"
|
||||
"/usr/local/include/log4cplus"
|
||||
"/opt/local/include"
|
||||
"/opt/local/include/log4cplus"
|
||||
${log4cplus_PKGCONF_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
# Finally the library itself
|
||||
find_library(log4cplus_LIB
|
||||
NAMES log4cplus liblog4cplus liblog4cplus-static
|
||||
HINTS "/usr/lib"
|
||||
"/usr/local/lib"
|
||||
"/opt/local/lib"
|
||||
${log4cplus_PKGCONF_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
set(log4cplus_PROCESS_INCLUDES log4cplus_INCLUDE_DIR)
|
||||
set(log4cplus_PROCESS_LIBS log4cplus_LIB)
|
||||
|
||||
libfind_process(log4cplus)
|
||||
|
Reference in New Issue
Block a user