8 lines
287 B
CMake
8 lines
287 B
CMake
file(GLOB_RECURSE scripts_src ${CMAKE_CURRENT_SOURCE_DIR} *.nut)
|
|
|
|
foreach(i IN LISTS scripts_src)
|
|
get_filename_component(script ${i} NAME_WE)
|
|
file(READ ${i} ${script}_content)
|
|
endforeach()
|
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/template.cpp.in ${OUTPUT_DIR}/nut_scripts.cpp) |