|
Revision 341, 1.3 kB
(checked in by smidl, 16 years ago)
|
|
Compilation stuff
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 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 | |
|---|
| 10 | MESSAGE("ITPP_DIR set to ${ITPP_DIR}" ) |
|---|
| 11 | |
|---|
| 12 | FIND_PATH(ITPP_INCLUDE_DIR itpp/itbase.h |
|---|
| 13 | ${ITPP_DIR} |
|---|
| 14 | # /usr/pkgs64/include |
|---|
| 15 | # /usr/include |
|---|
| 16 | NO_DEFAULT_PATH |
|---|
| 17 | ) |
|---|
| 18 | |
|---|
| 19 | FIND_LIBRARY(ITPP_LIBRARY |
|---|
| 20 | NAMES itpp #itpp_debug |
|---|
| 21 | PATHS ${ITPP_DIR}/libs |
|---|
| 22 | ${ITPP_DIR}/itpp/.libs/ |
|---|
| 23 | "${ITPP_DIR}\\win32\\lib" |
|---|
| 24 | # /usr/pkgs64/lib |
|---|
| 25 | # /usr/lib64 |
|---|
| 26 | # /usr/lib |
|---|
| 27 | NO_DEFAULT_PATH |
|---|
| 28 | ) |
|---|
| 29 | |
|---|
| 30 | IF (ITPP_LIBRARY AND ITPP_INCLUDE_DIR) |
|---|
| 31 | SET(ITPP_LIBRARIES ${ITPP_LIBRARY}) |
|---|
| 32 | SET(ITPP_FOUND "YES") |
|---|
| 33 | ELSE (ITPP_LIBRARY AND ITPP_INCLUDE_DIR) |
|---|
| 34 | SET(ITPP_FOUND "NO") |
|---|
| 35 | ENDIF (ITPP_LIBRARY AND ITPP_INCLUDE_DIR) |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | IF (ITPP_FOUND) |
|---|
| 39 | IF (NOT ITPP_FIND_QUIETLY) |
|---|
| 40 | MESSAGE(STATUS "Found ITPP: ${ITPP_LIBRARIES}") |
|---|
| 41 | ENDIF (NOT ITPP_FIND_QUIETLY) |
|---|
| 42 | ELSE (ITPP_FOUND) |
|---|
| 43 | IF (ITPP_FIND_REQUIRED) |
|---|
| 44 | MESSAGE(FATAL_ERROR "Could not find ITPP library") |
|---|
| 45 | ENDIF (ITPP_FIND_REQUIRED) |
|---|
| 46 | ENDIF (ITPP_FOUND) |
|---|
| 47 | |
|---|
| 48 | # Deprecated declarations. |
|---|
| 49 | GET_FILENAME_COMPONENT (NATIVE_ITPP_LIB_PATH ${ITPP_LIBRARY} PATH) |
|---|
| 50 | |
|---|
| 51 | MARK_AS_ADVANCED( |
|---|
| 52 | ITPP_LIBRARY |
|---|
| 53 | ITPP_INCLUDE_DIR |
|---|
| 54 | ) |
|---|