root/CMake_modules/FindITPP.cmake @ 25

Revision 25, 1.3 kB (checked in by mido, 16 years ago)

zacatek zprovoznovani CMAKEu na platforme WIN32, pridan modul FindTIPP, jaho cesty jsou zatim ponekud sebestredne nastavene:)

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