# CASA - Common Astronomy Software Applications
# Copyright (C) 2010 by ESO (in the framework of the ALMA collaboration)
# This file is part of CASA.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program 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 General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Print the contents of one or more CMake variables
message( STATUS "${_a} = ${${_a}}" )
# Append element to list, if that element does not already exist in the list
list( FIND ${l} ${x} _exists )
set( ${l} ${${l}} ${x} ${ARGN} )
# How to generate .h from .xml for DBUS
macro( casa_add_dbus_proxy _header _interface)
get_filename_component(_infile ${_interface} ABSOLUTE)
get_filename_component(_out_path ${_header} PATH)
# The output directory needs to exist,
# or dbus-xml2cpp will silently fail
COMMAND mkdir -p ${_out_path}
COMMAND ${dbus-xml-2-cxx} ${_infile} --proxy=${_header}