#NEWLINE# def _get_output( package ) : #NEWLINE# #INDENT# '\n    returns a list of strings with cmake commands to execute to set cmake variables\n\n    :param package: Package object\n    :returns: list of str, lines to output\n    ' #NEWLINE# values = OrderedDict ( ) #NEWLINE# values [ 'VERSION' ] = ( '"%s"' % package . version ) #NEWLINE# values [ 'MAINTAINER' ] = ( '"%s"' % ', ' . join ( [ str ( m ) for m in package . maintainers ] ) ) #NEWLINE# values [ 'PACKAGE_FORMAT' ] = ( '"%d"' % package . package_format ) #NEWLINE# values . update ( _get_dependency_values ( 'BUILD_DEPENDS' , package . build_depends ) ) #NEWLINE# values . update ( _get_dependency_values ( 'BUILD_EXPORT_DEPENDS' , package . build_export_depends ) ) #NEWLINE# values . update ( _get_dependency_values ( 'BUILDTOOL_DEPENDS' , package . buildtool_depends ) ) #NEWLINE# values . update ( _get_dependency_values ( 'BUILDTOOL_EXPORT_DEPENDS' , package . buildtool_export_depends ) ) #NEWLINE# values . update ( _get_dependency_values ( 'EXEC_DEPENDS' , package . exec_depends ) ) #NEWLINE# values . update ( _get_dependency_values ( 'RUN_DEPENDS' , package . run_depends ) ) #NEWLINE# values . update ( _get_dependency_values ( 'TEST_DEPENDS' , package . test_depends ) ) #NEWLINE# values . update ( _get_dependency_values ( 'DOC_DEPENDS' , package . doc_depends ) ) #NEWLINE# deprecated = [ e . content for e in package . exports if ( e . tagname == 'deprecated' ) ] #NEWLINE# values [ 'DEPRECATED' ] = ( '"%s"' % ( ( deprecated [ 0 ] if deprecated [ 0 ] else 'TRUE' ) if deprecated else '' ) ) #NEWLINE# output = [ ] #NEWLINE# output . append ( ( 'set(_CATKIN_CURRENT_PACKAGE "%s")' % package . name ) ) #NEWLINE# for ( k , v ) in values . items ( ) : #NEWLINE# #INDENT# output . append ( ( 'set(%s_%s %s)' % ( package . name , k , v ) ) ) #NEWLINE# #UNINDENT# return output