###################### # # Copyright (C) 2013 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301 USA. # ###################### IF(BINDINGS_QT4) SET(QT_USE_QTGUI TRUE) ENDIF(BINDINGS_QT4) INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${libengsas_SOURCE_DIR} ${libengsas_BINARY_DIR} ${libengsas_charts_SOURCE_DIR} ${libengsas_charts_BINARY_DIR} ${EXAMPELS_INCLUDE_DIR} ) IF(BINDINGS_QT4) # QT5 does not declare and does not need QT_INCLUDES SET(INCLUDE_DIRECTORIES ${INCLUDES_DIRECTORIES} ${QT_INCLUDES}) INCLUDE(${QT_USE_FILE}) ENDIF(BINDINGS_QT4) SET(LINK_LIBRARIES ${QT_LIBRARIES} libengsas libengsas_charts ) SET(src_CPP echarts.cpp mainwindow.cpp ) SET(neededStuff ${src_CPP} ${src_UI_H} ) ADD_EXAMPLE(NAME echarts SOURCES ${neededStuff} LIBRARIES ${LINK_LIBRARIES}) IF(BINDINGS_QT5) qt5_use_modules(example-echarts Core Widgets) ENDIF(BINDINGS_QT5)