2008-02-27 20:56:47 +03:00
|
|
|
# - Try to find Iniparser
|
|
|
|
# Once done this will define
|
|
|
|
#
|
|
|
|
# INIPARSER_FOUND - system has Iniparser
|
|
|
|
# INIPARSER_INCLUDE_DIRS - the Iniparser include directory
|
|
|
|
# INIPARSER_LIBRARIES - Link these to use Iniparser
|
|
|
|
# INIPARSER_DEFINITIONS - Compiler switches required for using Iniparser
|
|
|
|
#
|
|
|
|
# Copyright (c) 2007 Andreas Schneider <mail@cynapses.org>
|
2012-04-14 01:20:34 +04:00
|
|
|
# (c) 2012 Dominik Schmidt <dev@dominik-schmidt.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 01:20:34 +04:00
|
|
|
include(GNUInstallDirs)
|
2008-02-27 20:56:47 +03:00
|
|
|
|
2012-04-14 01:20:34 +04:00
|
|
|
find_path(INIPARSER_INCLUDE_DIRS
|
2008-02-27 20:56:47 +03:00
|
|
|
NAMES
|
2012-04-14 01:20:34 +04:00
|
|
|
iniparser.h
|
|
|
|
HINTS
|
|
|
|
${CMAKE_INSTALL_INCLUDEDIR}
|
|
|
|
)
|
2008-02-27 20:56:47 +03:00
|
|
|
|
2012-04-14 01:20:34 +04:00
|
|
|
find_library(INIPARSER_LIBRARIES
|
2008-02-27 20:56:47 +03:00
|
|
|
NAMES
|
2012-04-14 01:20:34 +04:00
|
|
|
iniparser
|
2008-02-27 20:56:47 +03:00
|
|
|
PATHS
|
2012-04-14 01:20:34 +04:00
|
|
|
${CMAKE_INSTALL_LIBDIR}
|
|
|
|
)
|
2008-02-27 20:56:47 +03:00
|
|
|
|
2012-04-14 01:20:34 +04:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(Iniparser
|
|
|
|
REQUIRED_VARS INIPARSER_LIBRARIES INIPARSER_INCLUDE_DIRS
|
|
|
|
)
|
2008-02-27 20:56:47 +03:00
|
|
|
|
|
|
|
|