mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 06:30:58 +08:00
log4cplus detection under macports
This commit is contained in:
@@ -135,18 +135,21 @@ if (NOT IOS)
|
|||||||
)
|
)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
|
||||||
# Compile the alprd library on Unix-based OS
|
# Compile the alprd library on Unix-based OS
|
||||||
IF (WITH_DAEMON)
|
IF (WITH_DAEMON)
|
||||||
ADD_EXECUTABLE( alprd daemon.cpp daemon/beanstalk.c daemon/beanstalk.cc )
|
ADD_EXECUTABLE( alprd daemon.cpp daemon/beanstalk.c daemon/beanstalk.cc )
|
||||||
|
|
||||||
|
FIND_PACKAGE( log4cplus REQUIRED )
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(alprd
|
TARGET_LINK_LIBRARIES(alprd
|
||||||
openalpr
|
${OPENALPR_LIB}
|
||||||
support
|
support
|
||||||
video
|
video
|
||||||
curl
|
curl
|
||||||
log4cplus
|
|
||||||
${OpenCV_LIBS}
|
${OpenCV_LIBS}
|
||||||
${Tesseract_LIBRARIES}
|
${Tesseract_LIBRARIES}
|
||||||
|
${log4cplus_LIBRARIES}
|
||||||
${Extra_LIBS}
|
${Extra_LIBS}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
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