summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/NinjaMultiConfig/PostBuild.cmake
blob: 5fcff746375a49f12990e8b41a783903a584f6eb (plain)
1
2
3
4
5
6
enable_language(C)

add_executable(Exe main.c)
add_custom_command(TARGET Exe POST_BUILD COMMAND ${CMAKE_COMMAND} -E echo "Running post-build command with $<CONFIG>")
add_custom_command(TARGET Exe POST_BUILD COMMAND ${CMAKE_COMMAND} -E echo "Generating out.txt with $<CONFIG>" BYPRODUCTS out.txt)
add_custom_command(TARGET Exe POST_BUILD COMMAND ${CMAKE_COMMAND} -E echo "Generating $<CONFIG>.txt" BYPRODUCTS $<CONFIG>.txt)