Revision 279, 1.3 kB
(checked in by smidl, 16 years ago)
|
Transition of pmsm and libKF
|
-
Property svn:eol-style set to
native
|
Rev | Line | |
---|
[68] | 1 | # - Find ITPP |
---|
| 2 | # Find the native ITPP includes and library |
---|
| 3 | # This module defines |
---|
| 4 | # ITPP_INCLUDE_DIR, where to find itpp/itbase.h, etc. |
---|
| 5 | # ITPP_LIBRARIES, the libraries needed to use ITPP. |
---|
| 6 | # ITPP_FOUND, If false, do not try to use ITPP. |
---|
| 7 | # also defined, but not for general use are |
---|
| 8 | # ITPP_LIBRARY, where to find the ITPP library. |
---|
| 9 | |
---|
[180] | 10 | MESSAGE("ITPP_DIR set to ${ITPP_DIR}" ) |
---|
| 11 | |
---|
[68] | 12 | FIND_PATH(ITPP_INCLUDE_DIR itpp/itbase.h |
---|
[211] | 13 | ${ITPP_DIR}/include |
---|
[68] | 14 | /usr/pkgs64/include |
---|
[279] | 15 | /usr/include |
---|
[68] | 16 | ) |
---|
| 17 | |
---|
| 18 | FIND_LIBRARY(ITPP_LIBRARY |
---|
| 19 | NAMES itpp itpp_debug |
---|
[211] | 20 | PATHS ${ITPP_DIR}/libs |
---|
[169] | 21 | "${ITPP_DIR}\\win32\\lib" |
---|
[68] | 22 | /usr/pkgs64/lib |
---|
[247] | 23 | /usr/lib64 |
---|
[279] | 24 | /usr/lib |
---|
[169] | 25 | NO_DEFAULT_PATH |
---|
| 26 | ) |
---|
[68] | 27 | |
---|
| 28 | IF (ITPP_LIBRARY AND ITPP_INCLUDE_DIR) |
---|
| 29 | SET(ITPP_LIBRARIES ${ITPP_LIBRARY}) |
---|
| 30 | SET(ITPP_FOUND "YES") |
---|
| 31 | ELSE (ITPP_LIBRARY AND ITPP_INCLUDE_DIR) |
---|
| 32 | SET(ITPP_FOUND "NO") |
---|
| 33 | ENDIF (ITPP_LIBRARY AND ITPP_INCLUDE_DIR) |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | IF (ITPP_FOUND) |
---|
| 37 | IF (NOT ITPP_FIND_QUIETLY) |
---|
| 38 | MESSAGE(STATUS "Found ITPP: ${ITPP_LIBRARIES}") |
---|
| 39 | ENDIF (NOT ITPP_FIND_QUIETLY) |
---|
| 40 | ELSE (ITPP_FOUND) |
---|
| 41 | IF (ITPP_FIND_REQUIRED) |
---|
| 42 | MESSAGE(FATAL_ERROR "Could not find ITPP library") |
---|
| 43 | ENDIF (ITPP_FIND_REQUIRED) |
---|
| 44 | ENDIF (ITPP_FOUND) |
---|
| 45 | |
---|
| 46 | # Deprecated declarations. |
---|
| 47 | GET_FILENAME_COMPONENT (NATIVE_ITPP_LIB_PATH ${ITPP_LIBRARY} PATH) |
---|
| 48 | |
---|
| 49 | MARK_AS_ADVANCED( |
---|
| 50 | ITPP_LIBRARY |
---|
| 51 | ITPP_INCLUDE_DIR |
---|
| 52 | ) |
---|