CMakeLists.txt 1.18 KB
Newer Older
Jan Möbius's avatar
 
Jan Möbius committed
1
include (plugin)
2
3
4
5
6

if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/BSplineCurve)
  add_definitions (-DENABLE_SKELETON_SUPPORT)
endif()

7
8
if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/PolyhedralMesh)
    add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
9
    add_definitions (-DENABLE_OPENVOLUMEMESH_POLYHEDRAL_SUPPORT)
10
    add_definitions (-DOVM_FORCE_STATIC_CAST)
11
12
13
14
15
endif()

if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/HexahedralMesh)
    add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
    add_definitions (-DENABLE_OPENVOLUMEMESH_HEXAHEDRAL_SUPPORT)
16
    add_definitions (-DOVM_FORCE_STATIC_CAST)
17
18
endif()

19
20
21
22
23
24
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)
25
      add_definitions (-DOVM_FORCE_STATIC_CAST)
26
27
28
29
    endif()
  endif()
endif()

30
31
32
33
openflipper_plugin (INSTALLDATA Icons  
                    DIRS OpenMesh OpenVolumeMesh Widgets 
                    DEPS OpenMesh OpenVolumeMesh
                    OPT_TYPES SKELETON)