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

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
endif()

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

    list( APPEND CURRENT_PLUGIN_DEPS OpenVolumeMesh )
17
endif()
18

19 20 21 22
if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/BSplineSurface)
    add_definitions (-DENABLE_BSPLINESURFACE_SUPPORT)
endif()

23 24
list(REMOVE_DUPLICATES CURRENT_PLUGIN_DEPS )

25
# use Qwt6 for QT5
26 27 28 29 30
find_package(Qwt6)

if (QWT6_FOUND)
  add_definitions(-DWITH_QWT)
  openflipper_plugin( DEPS ${CURRENT_PLUGIN_DEPS} Qwt6)
31
else()
32
  openflipper_plugin( DEPS ${CURRENT_PLUGIN_DEPS})
33
endif()