root/library/system/FindITPP.cmake @ 508

Revision 406, 1.4 kB (checked in by smidl, 16 years ago)

Build system restructuring

  • 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
32IF (ITPP_LIBRARY AND ITPP_INCLUDE_DIR)
33    SET(ITPP_LIBRARIES ${ITPP_LIBRARY})
34    SET(ITPP_FOUND "YES")
35ELSE (ITPP_LIBRARY AND ITPP_INCLUDE_DIR)
36  SET(ITPP_FOUND "NO")
37ENDIF (ITPP_LIBRARY AND ITPP_INCLUDE_DIR)
38
39
40IF (ITPP_FOUND)
41   IF (NOT ITPP_FIND_QUIETLY)
42      MESSAGE(STATUS "Found ITPP: ${ITPP_LIBRARIES}")
43   ENDIF (NOT ITPP_FIND_QUIETLY)
44ELSE (ITPP_FOUND)
45   IF (ITPP_FIND_REQUIRED)
46      MESSAGE(FATAL_ERROR "Could not find ITPP library, make sure ITPP_DIR is properly set")
47   ENDIF (ITPP_FIND_REQUIRED)
48ENDIF (ITPP_FOUND)
49
50# Deprecated declarations.
51GET_FILENAME_COMPONENT (NATIVE_ITPP_LIB_PATH ${ITPP_LIBRARY} PATH)
52
53MARK_AS_ADVANCED(
54  ITPP_LIBRARY
55  ITPP_INCLUDE_DIR
56  )
Note: See TracBrowser for help on using the browser.