root/CMake_modules/FindITPP.cmake @ 35

Revision 35, 1.1 kB (checked in by mido, 16 years ago)

zasadni zmeny ve /win32

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