|
Revision 35, 1.1 kB
(checked in by mido, 18 years ago)
|
|
zasadni zmeny ve /win32
|
| 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 | FIND_PATH(ITPP_INCLUDE_DIR itpp/itbase.h |
|---|
| 11 | ${ITPP_DIR} |
|---|
| 12 | ) |
|---|
| 13 | |
|---|
| 14 | FIND_LIBRARY(ITPP_LIBRARY |
|---|
| 15 | NAMES itpp itpp_debug |
|---|
| 16 | PATHS "${ITPP_DIR}\\win32\\lib" |
|---|
| 17 | ) |
|---|
| 18 | |
|---|
| 19 | IF (ITPP_LIBRARY AND ITPP_INCLUDE_DIR) |
|---|
| 20 | SET(ITPP_LIBRARIES ${ITPP_LIBRARY}) |
|---|
| 21 | SET(ITPP_FOUND "YES") |
|---|
| 22 | ELSE (ITPP_LIBRARY AND ITPP_INCLUDE_DIR) |
|---|
| 23 | SET(ITPP_FOUND "NO") |
|---|
| 24 | ENDIF (ITPP_LIBRARY AND ITPP_INCLUDE_DIR) |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | IF (ITPP_FOUND) |
|---|
| 28 | IF (NOT ITPP_FIND_QUIETLY) |
|---|
| 29 | MESSAGE(STATUS "Found ITPP: ${ITPP_LIBRARIES}") |
|---|
| 30 | ENDIF (NOT ITPP_FIND_QUIETLY) |
|---|
| 31 | ELSE (ITPP_FOUND) |
|---|
| 32 | IF (ITPP_FIND_REQUIRED) |
|---|
| 33 | MESSAGE(FATAL_ERROR "Could not find ITPP library") |
|---|
| 34 | ENDIF (ITPP_FIND_REQUIRED) |
|---|
| 35 | ENDIF (ITPP_FOUND) |
|---|
| 36 | |
|---|
| 37 | # Deprecated declarations. |
|---|
| 38 | GET_FILENAME_COMPONENT (NATIVE_ITPP_LIB_PATH ${ITPP_LIBRARY} PATH) |
|---|
| 39 | |
|---|
| 40 | MARK_AS_ADVANCED( |
|---|
| 41 | ITPP_LIBRARY |
|---|
| 42 | ITPP_INCLUDE_DIR |
|---|
| 43 | ) |
|---|