2020-08-24 02:28:15 +02:00
|
|
|
set(SOURCE_FILE ${CMAKE_ARGV3})
|
|
|
|
set(HEADER_FILE ${CMAKE_ARGV4})
|
|
|
|
set(INPUT_FILE ${CMAKE_ARGV5})
|
|
|
|
|
|
|
|
get_filename_component(CONTENTS_NAME ${SOURCE_FILE} NAME)
|
|
|
|
string(REPLACE "." "_" CONTENTS_NAME ${CONTENTS_NAME})
|
|
|
|
string(TOUPPER ${CONTENTS_NAME} CONTENTS_NAME)
|
|
|
|
|
|
|
|
file(READ ${SOURCE_FILE} CONTENTS)
|
|
|
|
|
2020-09-24 02:38:05 +02:00
|
|
|
get_filename_component(OUTPUT_DIR ${HEADER_FILE} DIRECTORY)
|
|
|
|
make_directory(${OUTPUT_DIR})
|
2020-08-24 02:28:15 +02:00
|
|
|
configure_file(${INPUT_FILE} ${HEADER_FILE} @ONLY)
|