root/CMake_modules/FindITPP.cmake @ 303

Revision 303, 1.3 kB (checked in by suzdalev, 15 years ago)

cmake mac Os X configuration

  • 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  )
17
18FIND_LIBRARY(ITPP_LIBRARY
19  NAMES itpp itpp_debug
20  PATHS ${ITPP_DIR}/libs
21  ${ITPP_DIR}/itpp/.libs/
22  "${ITPP_DIR}\\win32\\lib"
23  /usr/pkgs64/lib
24  /usr/lib64
25  /usr/lib
26  #NO_DEFAULT_PATH
27)
28
29IF (ITPP_LIBRARY AND ITPP_INCLUDE_DIR)
30    SET(ITPP_LIBRARIES ${ITPP_LIBRARY})
31    SET(ITPP_FOUND "YES")
32ELSE (ITPP_LIBRARY AND ITPP_INCLUDE_DIR)
33  SET(ITPP_FOUND "NO")
34ENDIF (ITPP_LIBRARY AND ITPP_INCLUDE_DIR)
35
36
37IF (ITPP_FOUND)
38   IF (NOT ITPP_FIND_QUIETLY)
39      MESSAGE(STATUS "Found ITPP: ${ITPP_LIBRARIES}")
40   ENDIF (NOT ITPP_FIND_QUIETLY)
41ELSE (ITPP_FOUND)
42   IF (ITPP_FIND_REQUIRED)
43      MESSAGE(FATAL_ERROR "Could not find ITPP library")
44   ENDIF (ITPP_FIND_REQUIRED)
45ENDIF (ITPP_FOUND)
46
47# Deprecated declarations.
48GET_FILENAME_COMPONENT (NATIVE_ITPP_LIB_PATH ${ITPP_LIBRARY} PATH)
49
50MARK_AS_ADVANCED(
51  ITPP_LIBRARY
52  ITPP_INCLUDE_DIR
53  )
Note: See TracBrowser for help on using the browser.