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