CMakeLists.txt 895 Bytes
Newer Older
1
include (plugin)
2

3 4
SET( CURRENT_PLUGIN_DEPS "")

5
if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/BSplineCurve)
6
  add_definitions (-DENABLE_BSPLINECURVE_SUPPORT)
7 8
endif()

9 10 11 12
if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/BSplineSurface)
  add_definitions (-DENABLE_BSPLINESURFACE_SUPPORT)
endif ()

13 14 15
if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/PolyhedralMesh)
    add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
    add_definitions (-DENABLE_OPENVOLUMEMESH_POLYHEDRAL_SUPPORT)
16 17
    
    list( APPEND CURRENT_PLUGIN_DEPS OpenVolumeMesh )
18 19 20 21 22
endif()

if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/HexahedralMesh)
    add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
    add_definitions (-DENABLE_OPENVOLUMEMESH_HEXAHEDRAL_SUPPORT)
23 24

    list( APPEND CURRENT_PLUGIN_DEPS OpenVolumeMesh )
25 26
endif()

27 28 29 30
list(REMOVE_DUPLICATES CURRENT_PLUGIN_DEPS )

openflipper_plugin ( DEPS ${CURRENT_PLUGIN_DEPS}
		     INSTALLDATA Icons )