blob: 081fb7e4ca171ea4aa2bcd8a8ecdcaef85288a30 (
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
51
52
53
|
# - Try to find Apogee Instruments Library
# Once done this will define
#
# APOGEE_FOUND - system has APOGEE
# APOGEE_INCLUDE_DIR - the APOGEE include directory
# APOGEE_LIBRARY - Link these to use APOGEE
# Copyright (c) 2008, Jasem Mutlaq <mutlaqja@ikarustech.com>
# Based on FindLibfacile by Carsten Niehaus, <cniehaus@gmx.de>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
if (APOGEE_INCLUDE_DIR AND APOGEE_LIBRARY)
# in cache already
set(APOGEE_FOUND TRUE)
message(STATUS "Found libapogee: ${APOGEE_LIBRARY}")
else (APOGEE_INCLUDE_DIR AND APOGEE_LIBRARY)
find_path(APOGEE_INCLUDE_DIR ApogeeCam.h
PATH_SUFFIXES libapogee
${_obIncDir}
${GNUWIN32_DIR}/include
)
# Find Apogee Library
find_library(APOGEE_LIBRARY NAMES apogee
PATHS
${_obLinkDir}
${GNUWIN32_DIR}/lib
)
if(APOGEE_INCLUDE_DIR AND APOGEE_LIBRARY)
set(APOGEE_FOUND TRUE)
else (APOGEE_INCLUDE_DIR AND APOGEE_LIBRARY)
set(APOGEE_FOUND FALSE)
endif(APOGEE_INCLUDE_DIR AND APOGEE_LIBRARY)
if (APOGEE_FOUND)
if (NOT APOGEE_FIND_QUIETLY)
message(STATUS "Found APOGEE: ${APOGEE_LIBRARY}")
endif (NOT APOGEE_FIND_QUIETLY)
else (APOGEE_FOUND)
if (APOGEE_FIND_REQUIRED)
message(FATAL_ERROR "libapogee not found. Cannot compile Apogee CCD Driver. Please install libapogee and try again. http://www.indilib.org")
endif (APOGEE_FIND_REQUIRED)
endif (APOGEE_FOUND)
mark_as_advanced(APOGEE_INCLUDE_DIR APOGEE_LIBRARY)
endif (APOGEE_INCLUDE_DIR AND APOGEE_LIBRARY)
|