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