1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
# To find if the diet log service module is installed
# And to set some environemment variables
#
# Variables set :
# LOG_LIB_DIR: Directory containing all the lib
# LOG_INCLUDE_DIR: Directory containing the files to include
set (libName "LogForwarderUtils")
MARK_AS_ADVANCED (libName)
find_path(LOG_INCLUDE_DIR LogORBMgr.hh
PATHS ${LOGSERVICE_DIR}/include
DOC "Directory containing the log service include files")
find_library(LOG_LIBRARY ${libName}
PATHS ${LOGSERVICE_DIR}/lib
DOC "The log service library")
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LOGSERVICE DEFAULT_MSG LOG_INCLUDE_DIR LOG_LIBRARY)
if (NOT LOGSERVICE_FOUND)
MESSAGE("Log not found on this machine. DIET will not be able to use the log system.")
SET(LOGSERVICE_DIR "" CACHE PATH "Root of log service tree installation".)
endif (NOT LOGSERVICE_FOUND)
|