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.

10 lines
305 B

add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/generated.hpp
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_SOURCE_DIR}/generated.h.in
${CMAKE_CURRENT_BINARY_DIR}/generated.hpp
# This will cause an error since the CODEGEN option
# requires that CMP0171 is set to NEW
CODEGEN
)