Debian Codegraph @

cmake_modules/FindSTARSHOOTG.cmake

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