You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
361 B
14 lines
361 B
enable_language(CSharp)
|
|
|
|
add_executable(CSharpCustomCommand dummy.cs)
|
|
|
|
add_custom_command(OUTPUT ${generatedFileName}
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
|
${inputFileName} ${generatedFileName}
|
|
MAIN_DEPENDENCY ${inputFileName}
|
|
COMMENT "${commandComment}")
|
|
|
|
target_sources(CSharpCustomCommand PRIVATE
|
|
${inputFileName}
|
|
${generatedFileName})
|