blob: 5da56920a5283c8aa545faea3ecd1e7f98ee9485 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# - Try to find AHPXC Universal Library
# Once done this will define
#
# AHPXC_FOUND - system has AHPXC
# AHPXC_INCLUDE_DIR - the AHPXC include directory
# AHPXC_LIBRARIES - Link these to use AHPXC
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
if (AHPXC_INCLUDE_DIR AND AHPXC_LIBRARIES)
# in cache already
set(AHPXC_FOUND TRUE)
message(STATUS "Found libahp_xc: ${AHPXC_LIBRARIES}")
else (AHPXC_INCLUDE_DIR AND AHPXC_LIBRARIES)
find_path(AHPXC_INCLUDE_DIR ahp_xc.h
PATH_SUFFIXES ahp
${_obIncDir}
${GNUWIN32_DIR}/include
)
find_library(AHPXC_LIBRARIES NAMES ahp_xc
PATHS
${_obLinkDir}
${GNUWIN32_DIR}/lib
)
if(AHPXC_INCLUDE_DIR AND AHPXC_LIBRARIES)
set(AHPXC_FOUND TRUE)
else (AHPXC_INCLUDE_DIR AND AHPXC_LIBRARIES)
set(AHPXC_FOUND FALSE)
endif(AHPXC_INCLUDE_DIR AND AHPXC_LIBRARIES)
if (AHPXC_FOUND)
if (NOT AHPXC_FIND_QUIETLY)
message(STATUS "Found AHP XC: ${AHPXC_LIBRARIES}")
endif (NOT AHPXC_FIND_QUIETLY)
else (AHPXC_FOUND)
if (AHPXC_FIND_REQUIRED)
message(FATAL_ERROR "AHP XC not found. Please install libahp_xc http://www.indilib.org")
endif (AHPXC_FIND_REQUIRED)
endif (AHPXC_FOUND)
mark_as_advanced(AHPXC_INCLUDE_DIR AHPXC_LIBRARIES)
endif (AHPXC_INCLUDE_DIR AND AHPXC_LIBRARIES)
|