Line | |
---|
1 | # - Try to find Meade DSI Library.
|
---|
2 | # Once done this will define
|
---|
3 | #
|
---|
4 | # MEADEDSI_FOUND - system has Meade DSI
|
---|
5 | # MEADEDSI_LIBRARIES - Link these to use Meade DSI
|
---|
6 |
|
---|
7 | # Copyright (c) 2006, Jasem Mutlaq <mutlaqja@ikarustech.com>
|
---|
8 | # Based on FindLibfacile by Carsten Niehaus, <cniehaus@gmx.de>
|
---|
9 | #
|
---|
10 | # Redistribution and use is allowed according to the terms of the BSD license.
|
---|
11 | # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
---|
12 |
|
---|
13 | if (MEADEDSI_LIBRARIES)
|
---|
14 |
|
---|
15 | # in cache already
|
---|
16 | set(MEADEDSI_FOUND TRUE)
|
---|
17 | message(STATUS "Found MEADEDSI: ${MEADEDSI_LIBRARIES}")
|
---|
18 |
|
---|
19 | else (MEADEDSI_LIBRARIES)
|
---|
20 |
|
---|
21 | find_library(MEADEDSI_LIBRARIES NAMES dsi
|
---|
22 | PATHS
|
---|
23 | ${_obLinkDir}
|
---|
24 | ${GNUWIN32_DIR}/lib
|
---|
25 | )
|
---|
26 |
|
---|
27 | set(CMAKE_REQUIRED_LIBRARIES ${MEADEDSI_LIBRARIES})
|
---|
28 |
|
---|
29 | if(MEADEDSI_LIBRARIES)
|
---|
30 | set(MEADEDSI_FOUND TRUE)
|
---|
31 | else (MEADEDSI_LIBRARIES)
|
---|
32 | set(MEADEDSI_FOUND FALSE)
|
---|
33 | endif(MEADEDSI_LIBRARIES)
|
---|
34 |
|
---|
35 | if (MEADEDSI_FOUND)
|
---|
36 | if (NOT MEADEDSI_FIND_QUIETLY)
|
---|
37 | message(STATUS "Found Meade DSI: ${MEADEDSI_LIBRARIES}")
|
---|
38 | endif (NOT MEADEDSI_FIND_QUIETLY)
|
---|
39 | else (MEADEDSI_FOUND)
|
---|
40 | if (MEADEDSI_FIND_REQUIRED)
|
---|
41 | message(FATAL_ERROR "Meade DSI not found. Please install Meade DSI library. http://linuxdsi.sourceforge.net")
|
---|
42 | endif (MEADEDSI_FIND_REQUIRED)
|
---|
43 | endif (MEADEDSI_FOUND)
|
---|
44 |
|
---|
45 | mark_as_advanced(MEADEDSI_LIBRARIES)
|
---|
46 |
|
---|
47 | endif (MEADEDSI_LIBRARIES)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.