-
Notifications
You must be signed in to change notification settings - Fork 71
/
FindOpenMesh.cmake
23 lines (18 loc) · 1012 Bytes
/
FindOpenMesh.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright (c) 2014 Stefan.Eilemann@epfl.ch
find_path(_openMesh_INCLUDE_DIR OpenMesh/Core/Geometry/Config.hh
HINTS ${OPENMESH_ROOT}/include
PATHS /usr/include /usr/local/include /opt/local/include)
find_library(_openMesh_CORE_LIBRARY NAMES openMeshCore openMeshCored
HINTS ${OPENMESH_ROOT}/lib/OpenMesh
PATHS /usr/lib/OpenMesh /usr/local/lib/OpenMesh /opt/local/lib/OpenMesh)
find_library(_openMesh_TOOLS_LIBRARY NAMES openMeshTools openMeshToolsd
HINTS ${OPENMESH_ROOT}/lib/OpenMesh
PATHS /usr/lib/OpenMesh /usr/local/lib/OpenMesh /opt/local/lib/OpenMesh)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OPENMESH DEFAULT_MSG
_openMesh_INCLUDE_DIR _openMesh_CORE_LIBRARY _openMesh_TOOLS_LIBRARY)
set(OPENMESH_INCLUDE_DIRS ${_openMesh_INCLUDE_DIR})
set(OPENMESH_LIBRARIES ${_openMesh_CORE_LIBRARY} ${_openMesh_TOOLS_LIBRARY})
if(OPENMESH_FOUND AND NOT OPENMESH_FIND_QUIETLY)
message(STATUS "Found OpenMesh in ${OPENMESH_INCLUDE_DIRS};${OPENMESH_LIBRARIES}")
endif()