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

3
4
SET( CURRENT_PLUGIN_DEPS "")

Henrik Zimmer's avatar
Henrik Zimmer committed
5
6
7
8
if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/TSplineMesh)
  add_definitions (-DENABLE_TSPLINEMESH_SUPPORT)
endif ()

9
10
11
if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/PolyhedralMesh)
    add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
    add_definitions (-DENABLE_OPENVOLUMEMESH_POLYHEDRAL_SUPPORT)
12
13
  
    list( APPEND CURRENT_PLUGIN_DEPS OpenVolumeMesh )
14
15
16
17
18
endif()

if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/HexahedralMesh)
    add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
    add_definitions (-DENABLE_OPENVOLUMEMESH_HEXAHEDRAL_SUPPORT)
19
20
21
22
23
24
25
26

    list( APPEND CURRENT_PLUGIN_DEPS OpenVolumeMesh )
endif()

if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/TetrahedralMesh)
    add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
    add_definitions (-DENABLE_OPENVOLUMEMESH_TETRAHEDRAL_SUPPORT)

27
    list( APPEND CURRENT_PLUGIN_DEPS OpenVolumeMesh )
28
29
endif()

30
31
32
list(REMOVE_DUPLICATES CURRENT_PLUGIN_DEPS )

openflipper_plugin ( DEPS ${CURRENT_PLUGIN_DEPS}
33
34
                     TYPES PLANE POLYMESH TRIANGLEMESH
                     OPT_TYPES POLYLINE SKELETON
35
		     TRANSLATION_LANGUAGES de_DE
36
37
                     INSTALLDATA Icons VsiMetadata )

38