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

Jan Möbius's avatar
Jan Möbius committed
3 4 5 6 7 8 9 10 11 12
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 ()

Jan Möbius's avatar
Jan Möbius committed
13 14 15
if (NOT APPLE)
  find_package(Qwt5)
endif ()
16

Jan Möbius's avatar
Jan Möbius committed
17
if(NOT APPLE AND Qwt5_Qt4_FOUND)
18 19 20 21 22 23
  add_definitions(-DWITH_QWT)
  MESSAGE(STATUS, "include path: ${Qwt5_INCLUDE_DIR}")
  openflipper_plugin(INCDIRS ${Qwt5_INCLUDE_DIR} LIBRARIES ${Qwt5_Qt4_LIBRARY})
else()
  openflipper_plugin()
endif()