Revision 247, 1.2 kB
(checked in by smidl, 16 years ago)
|
cmake fixes for opensuse
|
-
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}/include |
---|
14 | /usr/pkgs64/include |
---|
15 | ) |
---|
16 | |
---|
17 | FIND_LIBRARY(ITPP_LIBRARY |
---|
18 | NAMES itpp itpp_debug |
---|
19 | PATHS ${ITPP_DIR}/libs |
---|
20 | "${ITPP_DIR}\\win32\\lib" |
---|
21 | /usr/pkgs64/lib |
---|
22 | /usr/lib64 |
---|
23 | NO_DEFAULT_PATH |
---|
24 | ) |
---|
25 | |
---|
26 | IF (ITPP_LIBRARY AND ITPP_INCLUDE_DIR) |
---|
27 | SET(ITPP_LIBRARIES ${ITPP_LIBRARY}) |
---|
28 | SET(ITPP_FOUND "YES") |
---|
29 | ELSE (ITPP_LIBRARY AND ITPP_INCLUDE_DIR) |
---|
30 | SET(ITPP_FOUND "NO") |
---|
31 | ENDIF (ITPP_LIBRARY AND ITPP_INCLUDE_DIR) |
---|
32 | |
---|
33 | |
---|
34 | IF (ITPP_FOUND) |
---|
35 | IF (NOT ITPP_FIND_QUIETLY) |
---|
36 | MESSAGE(STATUS "Found ITPP: ${ITPP_LIBRARIES}") |
---|
37 | ENDIF (NOT ITPP_FIND_QUIETLY) |
---|
38 | ELSE (ITPP_FOUND) |
---|
39 | IF (ITPP_FIND_REQUIRED) |
---|
40 | MESSAGE(FATAL_ERROR "Could not find ITPP library") |
---|
41 | ENDIF (ITPP_FIND_REQUIRED) |
---|
42 | ENDIF (ITPP_FOUND) |
---|
43 | |
---|
44 | # Deprecated declarations. |
---|
45 | GET_FILENAME_COMPONENT (NATIVE_ITPP_LIB_PATH ${ITPP_LIBRARY} PATH) |
---|
46 | |
---|
47 | MARK_AS_ADVANCED( |
---|
48 | ITPP_LIBRARY |
---|
49 | ITPP_INCLUDE_DIR |
---|
50 | ) |
---|