|
Revision 7830, 1.4 kB
(checked in by robert, 5 years ago)
|
|
Fixed debug build of Inventor plugin
|
-
Property svn:eol-style set to
native
|
| Rev | Line | |
|---|
| [6381] | 1 | # - Locate Inventor |
|---|
| 2 | # This module defines: |
|---|
| 3 | # INVENTOR_FOUND, if false, do not try to link against Inventor. |
|---|
| [7349] | 4 | # INVENTOR_INCLUDE_DIR, where to find headers. |
|---|
| [6381] | 5 | # INVENTOR_LIBRARY, the library to link against. |
|---|
| [7349] | 6 | # INVENTOR_LIBRARY_DEBUG, the debug library to link against. |
|---|
| [6381] | 7 | |
|---|
| 8 | FIND_PATH(INVENTOR_INCLUDE_DIR Inventor/So.h |
|---|
| [6561] | 9 | /usr/local/include |
|---|
| 10 | /usr/include |
|---|
| 11 | /sw/include |
|---|
| 12 | /opt/local/include |
|---|
| 13 | /opt/csw/include |
|---|
| 14 | /opt/include |
|---|
| [7349] | 15 | $ENV{COINDIR}/include |
|---|
| [6381] | 16 | ) |
|---|
| 17 | |
|---|
| 18 | FIND_LIBRARY(INVENTOR_LIBRARY |
|---|
| [7349] | 19 | NAMES coin2 Coin |
|---|
| [6381] | 20 | PATHS |
|---|
| 21 | /usr/local/lib |
|---|
| 22 | /usr/lib |
|---|
| 23 | /sw/lib |
|---|
| 24 | /opt/local/lib |
|---|
| 25 | /opt/csw/lib |
|---|
| 26 | /opt/lib |
|---|
| [7349] | 27 | $ENV{COINDIR}/lib |
|---|
| [6381] | 28 | ) |
|---|
| 29 | IF(NOT INVENTOR_LIBRARY) |
|---|
| 30 | # If we can't find libCoin try libInventor |
|---|
| 31 | FIND_LIBRARY(INVENTOR_LIBRARY |
|---|
| 32 | NAMES Inventor |
|---|
| 33 | PATHS |
|---|
| 34 | /usr/local/lib |
|---|
| 35 | /usr/lib |
|---|
| 36 | /sw/lib |
|---|
| 37 | /opt/local/lib |
|---|
| 38 | /opt/csw/lib |
|---|
| 39 | /opt/lib |
|---|
| 40 | ) |
|---|
| 41 | ENDIF(NOT INVENTOR_LIBRARY) |
|---|
| 42 | |
|---|
| [7349] | 43 | FIND_LIBRARY(INVENTOR_LIBRARY_DEBUG |
|---|
| 44 | NAMES coin2d |
|---|
| 45 | PATHS |
|---|
| 46 | /usr/local/lib |
|---|
| 47 | /usr/lib |
|---|
| 48 | /sw/lib |
|---|
| 49 | /opt/local/lib |
|---|
| 50 | /opt/csw/lib |
|---|
| 51 | /opt/lib |
|---|
| 52 | $ENV{COINDIR}/lib |
|---|
| 53 | ) |
|---|
| 54 | IF(NOT INVENTOR_LIBRARY_DEBUG) |
|---|
| 55 | IF(INVENTOR_LIBRARY) |
|---|
| [7830] | 56 | SET(INVENTOR_LIBRARY_DEBUG ${INVENTOR_LIBRARY}) |
|---|
| [7349] | 57 | ENDIF(INVENTOR_LIBRARY) |
|---|
| 58 | ENDIF(NOT INVENTOR_LIBRARY_DEBUG) |
|---|
| 59 | |
|---|
| [6381] | 60 | SET(INVENTOR_FOUND "NO") |
|---|
| 61 | IF(INVENTOR_INCLUDE_DIR AND INVENTOR_LIBRARY) |
|---|
| [6561] | 62 | SET(INVENTOR_FOUND "YES") |
|---|
| [6381] | 63 | ENDIF(INVENTOR_INCLUDE_DIR AND INVENTOR_LIBRARY) |
|---|