root/CMake_modules/FindITPP.cmake @ 109

Revision 68, 1.1 kB (checked in by smidl, 17 years ago)

Vymazak Kdevelop

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