
By specifying CODEGEN as an argument to add_custom_command the custom command will be added to a codegen build target. The intent is to provide a convenient way for users to get their generated files without having to build the whole project. This can be helpful for code analysis tools which can be useful for IDEs and CI.
6 lines
176 B
CMake
6 lines
176 B
CMake
set(filename "${RunCMake_TEST_BINARY_DIR}/generated.h")
|
|
if (NOT EXISTS "${filename}")
|
|
set(RunCMake_TEST_FAILED "expected file NOT created:\n ${filename}")
|
|
return()
|
|
endif()
|