###################### # # 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(WITH_EXAMPLES) # Configure environment first # load examples output name macro INCLUDE(example_helper) # where does the examples find the plugins? # IF(BUILD_PACKAGE) # SET(ENGSAS_SPREADSHEET_PROVIDER_PLUGIN_DIR ${ENGSAS_SPREADSHEET_PROVIDER_PLUGIN_DIR}) # ELSE(BUILD_PACKAGE) # SET(ENGSAS_SPREADSHEET_PROVIDER_PLUGIN_DIR ${LIBRARY_OUTPUT_PATH}) # ENDIF(BUILD_PACKAGE) # CONFIGURE_FILE( # ${CMAKE_CURRENT_SOURCE_DIR}/examplesconfig.h.in # ${CMAKE_CURRENT_BINARY_DIR}/examplesconfig.h # ) # Use this variable to include the path to the examplesconfig.h SET(EXAMPELS_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}) # Set the binary output path for the examples #SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/examples) # Include the exampels themself IF(WITH_SPREADSHEET_PROVIDER_MS OR WITH_SPREADSHEET_PROVIDER_CSV) ADD_SUBDIRECTORY(espreadsheethandler) ENDIF(WITH_SPREADSHEET_PROVIDER_MS OR WITH_SPREADSHEET_PROVIDER_CSV) IF(WITH_CHARTS) ADD_SUBDIRECTORY(echarts) ENDIF(WITH_CHARTS) IF(WITH_QML) ADD_SUBDIRECTORY(qml) ENDIF(WITH_QML) IF(WITH_GRAPHS) ADD_SUBDIRECTORY(egraphs) ENDIF(WITH_GRAPHS) ENDIF(WITH_EXAMPLES)