用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

59 lines
2.1 KiB

# - Check for the presence of LOG4CPLUS
#
# The following variables are set when LOG4CPLUS is found:
# LOG4CPLUS_FOUND = Set to true, if all components of LOG4CPLUS have been found.
# LOG4CPLUS_INCLUDE_DIRS = Include path for the header files of LOG4CPLUS
# LOG4CPLUS_LIBRARIES = Link these to use LOG4CPLUS
MESSAGE(STATUS "Looking for log4cplus...")
if (NOT LOG4CPLUS_FOUND)
if (NOT LOG4CPLUS_ROOT_DIR)
set (LOG4CPLUS_ROOT_DIR ${CMAKE_INSTALL_PREFIX})
endif (NOT LOG4CPLUS_ROOT_DIR)
##_____________________________________________________________________________
## Check for the header files
find_path (LOG4CPLUS_INCLUDE_DIRS
NAMES log4cplus/config.hxx log4cplus/appender.h log4cplus/loglevel.h
HINTS ${LOG4CPLUS_ROOT_DIR} ${CMAKE_INSTALL_PREFIX} "/usr/include" "/usr/local/include"
PATH_SUFFIXES include
)
##_____________________________________________________________________________
## Check for the library
find_library (LOG4CPLUS_LIBRARIES log4cplus
HINTS ${LOG4CPLUS_ROOT_DIR} ${CMAKE_INSTALL_PREFIX} "/usr/lib64" "/usr/lib" "/lib/" "/lib64" "/usr/local/lib" "/usr/local/lib64"
PATH_SUFFIXES lib
)
##_____________________________________________________________________________
## Actions taken when all components have been found
find_package_handle_standard_args (LOG4CPLUS DEFAULT_MSG LOG4CPLUS_LIBRARIES LOG4CPLUS_INCLUDE_DIRS)
if (LOG4CPLUS_FOUND)
if (NOT LOG4CPLUS_FIND_QUIETLY)
message (STATUS "Found components for log4cplus")
message (STATUS "LOG4CPLUS_ROOT_DIR = ${LOG4CPLUS_ROOT_DIR}")
message (STATUS "LOG4CPLUS_INCLUDES = ${LOG4CPLUS_INCLUDE_DIRS}")
message (STATUS "LOG4CPLUS_LIBRARIES = ${LOG4CPLUS_LIBRARIES}")
endif (NOT LOG4CPLUS_FIND_QUIETLY)
else (LOG4CPLUS_FOUND)
if (LOG4CPLUS_FIND_REQUIRED)
message (FATAL_ERROR "Could not find log4cplus!")
endif (LOG4CPLUS_FIND_REQUIRED)
endif (LOG4CPLUS_FOUND)
##_____________________________________________________________________________
## Mark advanced variables
mark_as_advanced (
LOG4CPLUS_ROOT_DIR
LOG4CPLUS_INCLUDE_DIRS
LOG4CPLUS_LIBRARIES
)
endif (NOT LOG4CPLUS_FOUND)