FindOpenMesh.cmake 1.22 KB
Newer Older
Jan Möbius's avatar
Jan Möbius committed
1 2 3 4 5 6 7 8 9
# - Try to findOPENMESH
# Once done this will define
#  
# OPENMESH_FOUND           - system has OPENMESH
# OPENMESH_INCLUDE_DIR - theOPENMESH include directory
# OPENMESH_LIBRARY         - Link these to use OPENMESH
# OPENMESH_LIBRARY_DIR  - Library DIR of OPENMESH
#   

Hans-Christian Ebke's avatar
Hans-Christian Ebke committed
10
IF (OPENMESH_INCLUDE_DIR)
Jan Möbius's avatar
Jan Möbius committed
11 12
  # Already in cache, be silent
  SET(OPENMESH_FIND_QUIETLY TRUE)
Hans-Christian Ebke's avatar
Hans-Christian Ebke committed
13
ENDIF (OPENMESH_INCLUDE_DIR)
Jan Möbius's avatar
Jan Möbius committed
14 15 16 17

FIND_PATH(OPENMESH_INCLUDE_DIR OpenMesh/Core/Mesh/PolyMeshT.hh
	  PATHS /usr/local/include 
                /usr/include 
Jan Möbius's avatar
Jan Möbius committed
18
                /usr/local/OpenMesh-2.0rc4/include
Jan Möbius's avatar
Jan Möbius committed
19
                "${CMAKE_SOURCE_DIR}/OpenMesh/src"
20
                "${CMAKE_SOURCE_DIR}/libs_required/OpenMesh/src"
Jan Möbius's avatar
Jan Möbius committed
21 22 23 24 25 26 27
                "${CMAKE_SOURCE_DIR}/../OpenMesh/src"
                /ACG/acgdev/gcc-4.0-x86_64/OM2/OpenMesh-2.0/installed/include
		    "C:\\Program Files\\OpenMesh 2.0\\include"
                )

IF (OPENMESH_INCLUDE_DIR )
   SET(OPENMESH_FOUND TRUE)
Jan Möbius's avatar
Jan Möbius committed
28 29 30
IF (WIN32)
   SET(OPENMESH_LIBRARY_DIR "${OPENMESH_INCLUDE_DIR}/../lib")
ELSE (WIN32)
Jan Möbius's avatar
Jan Möbius committed
31
   SET(OPENMESH_LIBRARY_DIR "${OPENMESH_INCLUDE_DIR}/../lib/OpenMesh")
Jan Möbius's avatar
Jan Möbius committed
32
ENDIF (WIN32)
Jan Möbius's avatar
Jan Möbius committed
33 34 35 36 37
   SET(OPENMESH_LIBRARY "OpenMeshCore;OpenMeshTools")
ELSE (OPENMESH_INCLUDE_DIR)
   SET(OPENMESH_FOUND FALSE )
ENDIF (OPENMESH_INCLUDE_DIR )