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

3 4
SET( CURRENT_PLUGIN_DEPS "")

5 6 7
if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/PolyhedralMesh)
    add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
    add_definitions (-DENABLE_OPENVOLUMEMESH_POLYHEDRAL_SUPPORT)
8 9
    
    list( APPEND CURRENT_PLUGIN_DEPS OpenVolumeMesh )
10 11 12 13 14
endif()

if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/HexahedralMesh)
    add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
    add_definitions (-DENABLE_OPENVOLUMEMESH_HEXAHEDRAL_SUPPORT)
15 16

    list( APPEND CURRENT_PLUGIN_DEPS OpenVolumeMesh )
17 18
endif()

19 20 21
list(REMOVE_DUPLICATES CURRENT_PLUGIN_DEPS )

openflipper_plugin ( DEPS ${CURRENT_PLUGIN_DEPS}
22 23 24
		     INSTALLDATA Icons 
                     TYPES POLYMESH TRIANGLEMESH
                     OPT_TYPES BSPLINESURFACE BSPLINECURVE)