mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
3cd6aeb541
libconfig's headers. modified: cmake/FindLIBCONFIG.cmake
21 lines
508 B
CMake
21 lines
508 B
CMake
# Find LIBCONFIG
|
|
#
|
|
# LIBCONFIG_INCLUDE_DIR
|
|
# LIBCONFIG_LIBRARY
|
|
# LIBCONFIG_FOUND
|
|
#
|
|
|
|
if (UNIX)
|
|
find_package(PkgConfig QUIET)
|
|
pkg_check_modules(_LIBCONFIG QUIET libconfig)
|
|
endif ()
|
|
|
|
FIND_PATH(LIBCONFIG_INCLUDE_DIR NAMES libconfig.h HINTS ${_LIBCONFIG_INCLUDEDIR})
|
|
|
|
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)
|