root/library/system/FindITPP.cmake @ 1433

Revision 786, 1.7 kB (checked in by smidl, 15 years ago)

acc

  • 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
10MESSAGE("ITPP_DIR set to ${ITPP_DIR}" )
11
12FIND_PATH(ITPP_INCLUDE_DIR itpp/itbase.h
13        ${ITPP_DIR}
14        /usr/pkgs64/include
15        /usr/include
16        /usr/local/include
17  NO_DEFAULT_PATH
18  )
19
20FIND_LIBRARY(ITPP_LIBRARY
21  NAMES itpp #itpp_debug
22  PATHS ${ITPP_DIR}/libs
23  ${ITPP_DIR}/itpp/.libs/
24  "${ITPP_DIR}\\win32\\lib"
25  /usr/pkgs64/lib
26  /usr/lib64
27  /usr/lib
28  /usr/local/lib
29  NO_DEFAULT_PATH
30)
31
32FIND_LIBRARY(ITPP_LIBRARY_DEBUG
33  NAMES itpp_debug
34  PATHS ${ITPP_DIR}/libs
35  ${ITPP_DIR}/itpp/.libs/
36  "${ITPP_DIR}\\win32\\lib"
37  /usr/pkgs64/lib
38  /usr/lib64
39  /usr/lib
40  /usr/local/lib
41  NO_DEFAULT_PATH
42)
43
44IF (ITPP_LIBRARY AND ITPP_INCLUDE_DIR)
45    SET(ITPP_LIBRARIES ${ITPP_LIBRARY})
46    SET(ITPP_FOUND "YES")
47ELSE (ITPP_LIBRARY AND ITPP_INCLUDE_DIR)
48  SET(ITPP_FOUND "NO")
49ENDIF (ITPP_LIBRARY AND ITPP_INCLUDE_DIR)
50
51
52IF (ITPP_FOUND)
53   IF (NOT ITPP_FIND_QUIETLY)
54      MESSAGE(STATUS "Found ITPP: ${ITPP_LIBRARIES}")
55   ENDIF (NOT ITPP_FIND_QUIETLY)
56ELSE (ITPP_FOUND)
57   IF (ITPP_FIND_REQUIRED)
58      MESSAGE("LIB: ${ITPP_LIBRARY}")
59      MESSAGE("LIB DEB: ${ITPP_LIBRARY_DEBUG}")
60      MESSAGE("INC: ${ITPP_INCLUDE_DIR}")
61      MESSAGE(FATAL_ERROR "Could not find ITPP library, make sure ITPP_DIR is properly set")
62   ENDIF (ITPP_FIND_REQUIRED)
63ENDIF (ITPP_FOUND)
64
65# Deprecated declarations.
66GET_FILENAME_COMPONENT (NATIVE_ITPP_LIB_PATH ${ITPP_LIBRARY} PATH)
67
68MARK_AS_ADVANCED(
69  ITPP_LIBRARY
70  ITPP_INCLUDE_DIR
71  )
Note: See TracBrowser for help on using the browser.