2013-07-31 02:41:51 +08:00
|
|
|
# Find LIBCONFIG
|
|
|
|
#
|
|
|
|
# LIBCONFIG_INCLUDE_DIR
|
|
|
|
# LIBCONFIG_LIBRARY
|
|
|
|
# LIBCONFIG_FOUND
|
|
|
|
#
|
|
|
|
|
2013-08-06 12:33:32 +08:00
|
|
|
if (UNIX)
|
|
|
|
find_package(PkgConfig QUIET)
|
|
|
|
pkg_check_modules(_LIBCONFIG QUIET libconfig)
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
FIND_PATH(LIBCONFIG_INCLUDE_DIR NAMES libconfig.h HINTS ${_LIBCONFIG_INCLUDEDIR})
|
2013-07-31 02:41:51 +08:00
|
|
|
|
|
|
|
FIND_LIBRARY(LIBCONFIG_LIBRARY NAMES config)
|
|
|
|
|
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBCONFIG DEFAULT_MSG LIBCONFIG_LIBRARY LIBCONFIG_INCLUDE_DIR)
|
|
|
|
|
|
|
|
MARK_AS_ADVANCED(LIBCONFIG_INCLUDE_DIR LIBCONFIG_LIBRARY)
|