Commit f01f96be authored by Jan Möbius's avatar Jan Möbius

Add dependency on OpenVolumemesh to cmakefiles of move,primitivesgen and TextureControl

closes #1855

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17821 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9629cb8c
include(plugin)
SET( CURRENT_PLUGIN_DEPS "")
if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/PolyhedralMesh)
add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
add_definitions (-DENABLE_OPENVOLUMEMESH_POLYHEDRAL_SUPPORT)
list( APPEND CURRENT_PLUGIN_DEPS OpenVolumeMesh )
endif()
if (EXISTS ${CMAKE_SOURCE_DIR}/ObjectTypes/HexahedralMesh)
add_definitions (-DENABLE_OPENVOLUMEMESH_SUPPORT)
add_definitions (-DENABLE_OPENVOLUMEMESH_HEXAHEDRAL_SUPPORT)
add_definitions (-DENABLE_OPENVOLUMEMESH_HEXAHEDRAL_SUPPORT)
list( APPEND CURRENT_PLUGIN_DEPS OpenVolumeMesh )
endif()
list(REMOVE_DUPLICATES CURRENT_PLUGIN_DEPS )
# use Qwt6 for QT5
if (NOT FORCE_QT4 AND QT5_FOUND)
find_package(Qwt6)
if (QWT6_FOUND)
add_definitions(-DWITH_QWT)
openflipper_plugin(INCDIRS ${QWT6_INCLUDE_DIRS} LIBRARIES ${QWT6_LIBRARIES})
openflipper_plugin( DEPS ${CURRENT_PLUGIN_DEPS}
INCDIRS ${QWT6_INCLUDE_DIRS}
LIBRARIES ${QWT6_LIBRARIES})
else()
openflipper_plugin()
openflipper_plugin( DEPS ${CURRENT_PLUGIN_DEPS})
endif()
else()
find_package(Qwt5)
if(Qwt5_Qt4_FOUND)
add_definitions(-DWITH_QWT)
openflipper_plugin(INCDIRS ${Qwt5_INCLUDE_DIR} LIBRARIES ${Qwt5_Qt4_LIBRARY})
openflipper_plugin( DEPS ${CURRENT_PLUGIN_DEPS}
INCDIRS ${Qwt5_INCLUDE_DIR}
LIBRARIES ${Qwt5_Qt4_LIBRARY})
else()
openflipper_plugin()
openflipper_plugin(DEPS ${CURRENT_PLUGIN_DEPS})
endif()
endif()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment