blob: bffa78e4c8eb0368082a83dd3153f72a2198d0cb (
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
|
# - Try to find Altair Camera Library
# Once done this will define
#
# ALTAIRCAM_FOUND - system has Altair
# ALTAIRCAM_INCLUDE_DIR - the Altair include directory
# ALTAIRCAM_LIBRARIES - Link these to use Altair
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
if (ALTAIRCAM_INCLUDE_DIR AND ALTAIRCAM_LIBRARIES)
# in cache already
set(ALTAIRCAM_FOUND TRUE)
message(STATUS "Found libaltaircam: ${ALTAIRCAM_LIBRARIES}")
else (ALTAIRCAM_INCLUDE_DIR AND ALTAIRCAM_LIBRARIES)
find_path(ALTAIRCAM_INCLUDE_DIR altaircam.h
PATH_SUFFIXES libaltaircam
${_obIncDir}
${GNUWIN32_DIR}/include
)
find_library(ALTAIRCAM_LIBRARIES NAMES altaircam
PATHS
${_obLinkDir}
${GNUWIN32_DIR}/lib
)
if(ALTAIRCAM_INCLUDE_DIR AND ALTAIRCAM_LIBRARIES)
set(ALTAIRCAM_FOUND TRUE)
else (ALTAIRCAM_INCLUDE_DIR AND ALTAIRCAM_LIBRARIES)
set(ALTAIRCAM_FOUND FALSE)
endif(ALTAIRCAM_INCLUDE_DIR AND ALTAIRCAM_LIBRARIES)
if (ALTAIRCAM_FOUND)
if (NOT ALTAIRCAM_FIND_QUIETLY)
message(STATUS "Found Altaircam: ${ALTAIRCAM_LIBRARIES}")
endif (NOT ALTAIRCAM_FIND_QUIETLY)
else (ALTAIRCAM_FOUND)
if (ALTAIRCAM_FIND_REQUIRED)
message(FATAL_ERROR "Altaircam not found. Please install Altaircam Library http://www.indilib.org")
endif (ALTAIRCAM_FIND_REQUIRED)
endif (ALTAIRCAM_FOUND)
mark_as_advanced(ALTAIRCAM_INCLUDE_DIR ALTAIRCAM_LIBRARIES)
endif (ALTAIRCAM_INCLUDE_DIR AND ALTAIRCAM_LIBRARIES)
|