Line | |
---|
1 | # - Try to find Quantum Scientific Imaging Library |
---|
2 | # Once done this will define |
---|
3 | # |
---|
4 | # QSI_FOUND - system has QSI |
---|
5 | # QSI_INCLUDE_DIR - the QSI include directory |
---|
6 | # QSI_LIBRARIES - Link these to use QSI |
---|
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 (QSI_INCLUDE_DIR AND QSI_LIBRARIES) |
---|
12 | |
---|
13 | # in cache already |
---|
14 | set(QSI_FOUND TRUE) |
---|
15 | message(STATUS "Found libqsiapi: ${QSI_LIBRARIES}") |
---|
16 | |
---|
17 | else (QSI_INCLUDE_DIR AND QSI_LIBRARIES) |
---|
18 | |
---|
19 | find_path(QSI_INCLUDE_DIR qsiapi.h |
---|
20 | PATH_SUFFIXES qsiapi |
---|
21 | ${_obIncDir} |
---|
22 | ${GNUWIN32_DIR}/include |
---|
23 | ) |
---|
24 | |
---|
25 | find_library(QSI_LIBRARIES NAMES qsiapi |
---|
26 | PATHS |
---|
27 | ${_obLinkDir} |
---|
28 | ${GNUWIN32_DIR}/lib |
---|
29 | ) |
---|
30 | |
---|
31 | if(QSI_INCLUDE_DIR AND QSI_LIBRARIES) |
---|
32 | set(QSI_FOUND TRUE) |
---|
33 | else (QSI_INCLUDE_DIR AND QSI_LIBRARIES) |
---|
34 | set(QSI_FOUND FALSE) |
---|
35 | endif(QSI_INCLUDE_DIR AND QSI_LIBRARIES) |
---|
36 | |
---|
37 | |
---|
38 | if (QSI_FOUND) |
---|
39 | if (NOT QSI_FIND_QUIETLY) |
---|
40 | message(STATUS "Found QSI: ${QSI_LIBRARIES}") |
---|
41 | endif (NOT QSI_FIND_QUIETLY) |
---|
42 | else (QSI_FOUND) |
---|
43 | if (QSI_FIND_REQUIRED) |
---|
44 | message(FATAL_ERROR "QSI not found. Please install qsiapi http://indi.sf.net") |
---|
45 | endif (QSI_FIND_REQUIRED) |
---|
46 | endif (QSI_FOUND) |
---|
47 | |
---|
48 | mark_as_advanced(QSI_INCLUDE_DIR QSI_LIBRARIES) |
---|
49 | |
---|
50 | endif (QSI_INCLUDE_DIR AND QSI_LIBRARIES) |
---|
Note: See
TracBrowser
for help on using the repository browser.