Blame cmake/Modules/FindArgp.cmake

Packit Service 31306d
# - Try to find ARGP
Packit Service 31306d
# Once done this will define
Packit Service 31306d
#
Packit Service 31306d
#  ARGP_ROOT_DIR - Set this variable to the root installation of ARGP
Packit Service 31306d
#
Packit Service 31306d
# Read-Only variables:
Packit Service 31306d
#  ARGP_FOUND - system has ARGP
Packit Service 31306d
#  ARGP_INCLUDE_DIR - the ARGP include directory
Packit Service 31306d
#  ARGP_LIBRARIES - Link these to use ARGP
Packit Service 31306d
#  ARGP_DEFINITIONS - Compiler switches required for using ARGP
Packit Service 31306d
#
Packit Service 31306d
#=============================================================================
Packit Service 31306d
#  Copyright (c) 2011-2016 Andreas Schneider <asn@cryptomilk.org>
Packit Service 31306d
#
Packit Service 31306d
#  Distributed under the OSI-approved BSD License (the "License");
Packit Service 31306d
#  see accompanying file Copyright.txt for details.
Packit Service 31306d
#
Packit Service 31306d
#  This software is distributed WITHOUT ANY WARRANTY; without even the
Packit Service 31306d
#  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Packit Service 31306d
#  See the License for more information.
Packit Service 31306d
#=============================================================================
Packit Service 31306d
#
Packit Service 31306d
Packit Service 31306d
set(_ARGP_ROOT_HINTS
Packit Service 31306d
)
Packit Service 31306d
Packit Service 31306d
set(_ARGP_ROOT_PATHS
Packit Service 31306d
    "$ENV{PROGRAMFILES}/argp"
Packit Service 31306d
)
Packit Service 31306d
Packit Service 31306d
find_path(ARGP_ROOT_DIR
Packit Service 31306d
    NAMES
Packit Service 31306d
        include/argp.h
Packit Service 31306d
    HINTS
Packit Service 31306d
        ${_ARGP_ROOT_HINTS}
Packit Service 31306d
    PATHS
Packit Service 31306d
        ${_ARGP_ROOT_PATHS}
Packit Service 31306d
)
Packit Service 31306d
mark_as_advanced(ARGP_ROOT_DIR)
Packit Service 31306d
Packit Service 31306d
find_path(ARGP_INCLUDE_DIR
Packit Service 31306d
    NAMES
Packit Service 31306d
        argp.h
Packit Service 31306d
    PATHS
Packit Service 31306d
        ${ARGP_ROOT_DIR}/include
Packit Service 31306d
)
Packit Service 31306d
Packit Service 31306d
find_library(ARGP_LIBRARY
Packit Service 31306d
    NAMES
Packit Service 31306d
        argp
Packit Service 31306d
    PATHS
Packit Service 31306d
        ${ARGP_ROOT_DIR}/lib
Packit Service 31306d
)
Packit Service 31306d
Packit Service 31306d
if (ARGP_LIBRARY)
Packit Service 31306d
  set(ARGP_LIBRARIES
Packit Service 31306d
      ${ARGP_LIBRARIES}
Packit Service 31306d
      ${ARGP_LIBRARY}
Packit Service 31306d
  )
Packit Service 31306d
endif (ARGP_LIBRARY)
Packit Service 31306d
Packit Service 31306d
include(FindPackageHandleStandardArgs)
Packit Service 31306d
find_package_handle_standard_args(ARGP DEFAULT_MSG ARGP_LIBRARIES ARGP_INCLUDE_DIR)
Packit Service 31306d
Packit Service 31306d
# show the ARGP_INCLUDE_DIR and ARGP_LIBRARIES variables only in the advanced view
Packit Service 31306d
mark_as_advanced(ARGP_INCLUDE_DIR ARGP_LIBRARIES)