File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,10 @@ generic_flex(ansi_c)
4
4
add_executable (converter library/converter.cpp)
5
5
6
6
file (GLOB ansi_c_library_sources "library/*.c" )
7
- set (converter_input_path "${CMAKE_CURRENT_SOURCE_DIR} /converter_input.txt" )
8
- file (WRITE ${converter_input_path} "" )
9
- foreach (source ${ansi_c_library_sources} )
10
- file (READ ${source} file_contents)
11
- file (APPEND ${converter_input_path} "${file_contents} " )
12
- endforeach ()
13
7
14
8
add_custom_command (OUTPUT "${CMAKE_CURRENT_BINARY_DIR} /cprover_library.inc"
15
- COMMAND converter < ${converter_input_path} > "${CMAKE_CURRENT_BINARY_DIR} /cprover_library.inc"
16
- DEPENDS converter ${converter_input_path}
17
- )
9
+ COMMAND cat ${ansi_c_library_sources} | $<TARGET_FILE:converter> > "${CMAKE_CURRENT_BINARY_DIR} /cprover_library.inc"
10
+ DEPENDS converter ${ansi_c_library_sources} )
18
11
19
12
add_executable (file_converter file_converter.cpp)
20
13
You can’t perform that action at this time.
0 commit comments