nextcloud-desktop/cmake/Modules/FindLog4C.cmake

37 lines
960 B
CMake
Raw Normal View History

2009-05-07 19:03:24 +04:00
# - Try to find Log4C
2008-02-27 20:56:47 +03:00
# Once done this will define
#
2009-05-07 19:03:24 +04:00
# LOG4C_FOUND - system has Log4C
# LOG4C_INCLUDE_DIRS - the Log4C include directory
# LOG4C_LIBRARIES - Link these to use Log4C
# LOG4C_DEFINITIONS - Compiler switches required for using Log4C
2008-02-27 20:56:47 +03:00
#
2009-05-07 19:03:24 +04:00
# Copyright (c) 2009 Andreas Schneider <mail@cynapses.org>
2008-02-27 20:56:47 +03:00
#
# Redistribution and use is allowed according to the terms of the New
# BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#
2012-04-14 02:05:52 +04:00
include(GNUInstallDirs)
2008-02-27 20:56:47 +03:00
2012-04-14 02:05:52 +04:00
find_path(LOG4C_INCLUDE_DIRS
2008-02-27 20:56:47 +03:00
NAMES
log4c.h
2012-04-14 02:05:52 +04:00
HINTS
${CMAKE_INSTALL_INCLUDEDIR}
)
2008-02-27 20:56:47 +03:00
2012-04-14 02:05:52 +04:00
find_library(LOG4C_LIBRARIES
2008-02-27 20:56:47 +03:00
NAMES
2012-04-14 02:05:52 +04:00
log4c
HINTS
${CMAKE_INSTALL_LIBDIR}
)
2008-02-27 20:56:47 +03:00
2012-04-14 02:05:52 +04:00
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Log4C DEFAULT_MSG LOG4C_LIBRARIES LOG4C_INCLUDE_DIRS)
2008-02-27 20:56:47 +03:00
2012-04-14 02:05:52 +04:00
# show the LOG4C_INCLUDE_DIRS and LOG4C_LIBRARIES variables only in the advanced view
mark_as_advanced(LOG4C_INCLUDE_DIRS LOG4C_LIBRARIES)