Debian Codegraph @

cmake_modules/FindFLIPRO.cmake

raw
1 # - Try to find Finger Lakes Instruments Library
2 # Once done this will define
3 #
4 # FLIPRO_FOUND - system has FLI
5 # FLIPRO_INCLUDE_DIR - the FLI include directory
6 # FLIPRO_LIBRARIES - Link these to use FLI
7
8 # Copyright (c) 2008, Jasem Mutlaq <[email protected]>
9 # Based on FindLibfacile by Carsten Niehaus, <[email protected]>
10 #
11 # Redistribution and use is allowed according to the terms of the BSD license.
12 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
13
14 if (FLIPRO_INCLUDE_DIR AND FLIPRO_LIBRARIES)
15
16 # in cache already
17 set(FLIPRO_FOUND TRUE)
18 message(STATUS "Found libflipro: ${FLIPRO_LIBRARIES}")
19
20 else (FLIPRO_INCLUDE_DIR AND FLIPRO_LIBRARIES)
21
22 # Might need to remove lib prefix once FLI fixes their library name
23 find_path(FLIPRO_INCLUDE_DIR libflipro.h
24 PATH_SUFFIXES fli
25 ${_obIncDir}
26 ${GNUWIN32_DIR}/include
27 )
28
29 find_library(FLIPRO_LIBRARIES NAMES libflipro
30 PATHS
31 ${_obLinkDir}
32 ${GNUWIN32_DIR}/lib
33 )
34
35 if(FLIPRO_INCLUDE_DIR AND FLIPRO_LIBRARIES)
36 set(FLIPRO_FOUND TRUE)
37 else (FLIPRO_INCLUDE_DIR AND FLIPRO_LIBRARIES)
38 set(FLIPRO_FOUND FALSE)
39 endif(FLIPRO_INCLUDE_DIR AND FLIPRO_LIBRARIES)
40
41
42 if (FLIPRO_FOUND)
43 if (NOT FLIPRO_FIND_QUIETLY)
44 message(STATUS "Found FLIPRO: ${FLIPRO_LIBRARIES}")
45 endif (NOT FLIPRO_FIND_QUIETLY)
46 else (FLIPRO_FOUND)
47 if (FLIPRO_FIND_REQUIRED)
48 message(FATAL_ERROR "FLIPRO not found. Please install it and try again. http://www.indilib.org")
49 endif (FLIPRO_FIND_REQUIRED)
50 endif (FLIPRO_FOUND)
51
52 mark_as_advanced(FLIPRO_INCLUDE_DIR FLIPRO_LIBRARIES)
53
54 endif (FLIPRO_INCLUDE_DIR AND FLIPRO_LIBRARIES)