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

3
4
5
# use Qwt6 for QT5
if (NOT FORCE_QT4 AND QT5_FOUND)
  find_package(Qwt6)
6

7
8
  if (QWT6_FOUND)
    add_definitions(-DWITH_QWT)
Jan Möbius's avatar
Jan Möbius committed
9
    openflipper_plugin(DEPS Qwt6
10
11
12
13
14
      INSTALLDATA Icons
    )
  else()
    openflipper_plugin(INSTALLDATA Icons)
  endif()
15
else()
16
17
18
19
  find_package(Qwt5)

  if(Qwt5_Qt4_FOUND)
    add_definitions(-DWITH_QWT)
Jan Möbius's avatar
Jan Möbius committed
20
    openflipper_plugin(DEPS Qwt5
21
22
23
24
25
      INSTALLDATA Icons
    )
  else()
    openflipper_plugin(INSTALLDATA Icons)
  endif()
26
endif()