root/CMake_modules/FindITPP.cmake @ 31

Revision 31, 1.2 kB (checked in by mido, 16 years ago)

snaha o rozbehani cmaku pod win xp, zatim ale neuspesna

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
10
11FIND_PATH(ITPP_INCLUDE_DIR itpp/itbase.h
12  C:\\itpp-4.0.1
13  )
14
15
16FIND_LIBRARY(ITPP_LIBRARY
17  NAMES itpp itpp_debug
18  PATHS C:\\itpp-4.0.1\\win32\\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.