CMakeLists.txt 534 Bytes
Newer Older
Jan Möbius's avatar
 
Jan Möbius committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
include(plugin)

macro (of_list_filter _list)
  if (APPLE OR NOT Qwt5_Qt4_FOUND)
      foreach (_element ${${_list}})
      if (_element MATCHES "QwtFunctionPlot.*\\.(cc|hh|ui)$")
        list (REMOVE_ITEM ${_list} ${_element})
      endif ()
    endforeach ()
  endif ()
endmacro ()

if (NOT APPLE)
  find_package(Qwt5)
endif ()

if(NOT APPLE AND Qwt5_Qt4_FOUND)
  add_definitions(-DWITH_QWT)
  openflipper_plugin(INCDIRS ${Qwt5_INCLUDE_DIR} LIBRARIES ${Qwt5_Qt4_LIBRARY})
else()
  openflipper_plugin()
endif()