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

3
find_package(Qwt5)
Jan Möbius's avatar
   
Jan Möbius committed
4

5
if(Qwt5_Qt4_FOUND)
Jan Möbius's avatar
   
Jan Möbius committed
6
7
8
9
10
  add_definitions(-DWITH_QWT)
  openflipper_plugin(INCDIRS ${Qwt5_INCLUDE_DIR} LIBRARIES ${Qwt5_Qt4_LIBRARY})
else()
  openflipper_plugin()
endif()
11
12
13
14
15
16
17
18
19
20

if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/PolyhedralMesh)
    add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
    add_definitions (-DENABLE_OPENVOLUMEMESH_POLYHEDRAL_SUPPORT)
endif()

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