#*******************************************************************************
# Copyright (c) 2016 fortiss GmbH 
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# http://www.eclipse.org/legal/epl-2.0.
#
# SPDX-License-Identifier: EPL-2.0
# 
# Contributors:
#    Alois Zoitl - initial API and implementation and/or initial documentation
# *******************************************************************************/

###############################################################
# PiFace Raspberry Pi expansion board
###############################################################
forte_add_module(MLPI OFF "Process interface using the MLPI functions for Bosch Rexroth PLCs")

SET(FORTE_COM_MLPI_DIR "" CACHE PATH "Path to MLPI src directory")


if(FORTE_MODULE_MLPI)
  forte_add_include_directories(${CMAKE_CURRENT_SOURCE_DIR})
  forte_add_sourcefile_hcpp(../../stdfblib/io/IX)
  forte_add_sourcefile_hcpp(../../stdfblib/io/QX)
  forte_add_sourcefile_hcpp(processinterface)
  
  forte_add_handler(CMLPIFaceProcessInterface::CIOHandler processinterface)
  
  forte_add_include_system_directories( ${FORTE_COM_MLPI_DIR}/mlpiCore/include )
          
endif()
