CMakeLists.txt 1.13 KB
Newer Older
Jan Möbius's avatar
 
Jan Möbius committed
1
include (plugin)
2

3
4
if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/PolyhedralMesh)
    add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
5
    add_definitions (-DENABLE_OPENVOLUMEMESH_POLYHEDRAL_SUPPORT)
6
    add_definitions (-DOVM_FORCE_STATIC_CAST)
7
8
9
10
11
endif()

if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/HexahedralMesh)
    add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
    add_definitions (-DENABLE_OPENVOLUMEMESH_HEXAHEDRAL_SUPPORT)
12
    add_definitions (-DOVM_FORCE_STATIC_CAST)
13
14
endif()

15
16
17
18
19
20
find_package(OpenVolumeMesh)
if(OPENVOLUMEMESH_FOUND)
  if(EXISTS ${OPENVOLUMEMESH_INCLUDE_DIR}/OpenVolumeMesh/Mesh/TetrahedralMesh.hh)
    if(EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/TetrahedralMesh/TetrahedralMesh.hh)
      add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
      add_definitions (-DENABLE_OPENVOLUMEMESH_TETRAHEDRAL_SUPPORT)
21
      add_definitions (-DOVM_FORCE_STATIC_CAST)
22
23
24
25
    endif()
  endif()
endif()

26
27
28
openflipper_plugin (INSTALLDATA Icons  
                    DIRS OpenMesh OpenVolumeMesh Widgets 
                    DEPS OpenMesh OpenVolumeMesh
29
30
                    OPT_TYPES SKELETON BSPLINECURVE
                    TYPES POLYMESH TRIANGLEMESH)