Warning, /graphics/kst-plot/cmake/modules/KstRevisionHeader.cmake is written in an unsupported language. File is not indexed.

0001 # ***************************************************************************
0002 # *                                                                         *
0003 # *   Copyright : (C) 2010 The University of Toronto                        *
0004 # *   email     : netterfield@astro.utoronto.ca                             *
0005 # *                                                                         *
0006 # *   Copyright : (C) 2010 Peter Kümmel                                     *
0007 # *   email     : syntheticpp@gmx.net                                       *
0008 # *                                                                         *
0009 # *   This program is free software; you can redistribute it and/or modify  *
0010 # *   it under the terms of the GNU General Public License as published by  *
0011 # *   the Free Software Foundation; either version 2 of the License, or     *
0012 # *   (at your option) any later version.                                   *
0013 # *                                                                         *
0014 # ***************************************************************************
0015 
0016 macro(KstRevisionHeader source_dir target_name header_file modified_str)
0017     # a custom target that is always built
0018     # creates ${header_file} using KstRevisionGenerator.cmake script
0019         add_custom_target(${target_name} ALL
0020                 COMMAND ${CMAKE_COMMAND}
0021             -Dsource_dir="${source_dir}"
0022             -Dheader_file="${header_file}"
0023             -Dmodified_str="${modified_str}"
0024             -Dkst_dir="${kst_dir}"
0025             -P ${CMAKE_SOURCE_DIR}/cmake/modules/KstRevisionGenerator.cmake)
0026 
0027     # ${header_file} is a generated file
0028     set_source_files_properties(${header_file}
0029             PROPERTIES
0030             GENERATED TRUE
0031             HEADER_FILE_ONLY TRUE)
0032 endmacro()
0033