1
cmake_minimum_required(VERSION 2.6)
3
cmake_policy(SET CMP0011 NEW)
6
macro(add_constant_template outfiles name const_name input)
7
set(file_target "${CMAKE_CURRENT_BINARY_DIR}/${name}.c")
10
COMMAND ${CMAKE_COMMAND}
12
"-Dfile_target=${file_target}"
13
"-Dconst_name=${const_name}"
15
-P "${CMAKE_SOURCE_DIR}/cmake/ConstantBuilderTemplates.cmake"
16
DEPENDS "${CMAKE_SOURCE_DIR}/cmake/ConstantBuilderTemplates.cmake" "${input}"
18
list(APPEND ${outfiles} "${file_target}")
19
endmacro(add_constant_template)