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 54
|
# - Try to find Finger Lakes Instruments Library
# Once done this will define
#
# FLIPRO_FOUND - system has FLI
# FLIPRO_INCLUDE_DIR - the FLI include directory
# FLIPRO_LIBRARIES - Link these to use FLI
# 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 (FLIPRO_INCLUDE_DIR AND FLIPRO_LIBRARIES)
# in cache already
set(FLIPRO_FOUND TRUE)
message(STATUS "Found libflipro: ${FLIPRO_LIBRARIES}")
else (FLIPRO_INCLUDE_DIR AND FLIPRO_LIBRARIES)
# Might need to remove lib prefix once FLI fixes their library name
find_path(FLIPRO_INCLUDE_DIR libflipro.h
PATH_SUFFIXES fli
${_obIncDir}
${GNUWIN32_DIR}/include
)
find_library(FLIPRO_LIBRARIES NAMES libflipro
PATHS
${_obLinkDir}
${GNUWIN32_DIR}/lib
)
if(FLIPRO_INCLUDE_DIR AND FLIPRO_LIBRARIES)
set(FLIPRO_FOUND TRUE)
else (FLIPRO_INCLUDE_DIR AND FLIPRO_LIBRARIES)
set(FLIPRO_FOUND FALSE)
endif(FLIPRO_INCLUDE_DIR AND FLIPRO_LIBRARIES)
if (FLIPRO_FOUND)
if (NOT FLIPRO_FIND_QUIETLY)
message(STATUS "Found FLIPRO: ${FLIPRO_LIBRARIES}")
endif (NOT FLIPRO_FIND_QUIETLY)
else (FLIPRO_FOUND)
if (FLIPRO_FIND_REQUIRED)
message(FATAL_ERROR "FLIPRO not found. Please install it and try again. http://www.indilib.org")
endif (FLIPRO_FIND_REQUIRED)
endif (FLIPRO_FOUND)
mark_as_advanced(FLIPRO_INCLUDE_DIR FLIPRO_LIBRARIES)
endif (FLIPRO_INCLUDE_DIR AND FLIPRO_LIBRARIES)
|