SubDir-common.cmake 369 B

123456789101112131415
  1. add_custom_command(
  2. OUTPUT
  3. ${CMAKE_CURRENT_BINARY_DIR}/generated.h
  4. COMMAND
  5. ${CMAKE_COMMAND} -E
  6. copy ${CMAKE_CURRENT_SOURCE_DIR}/generated.h.in
  7. ${CMAKE_CURRENT_BINARY_DIR}/generated.h
  8. CODEGEN
  9. )
  10. add_library(errorlib_top
  11. # If this library is built error.c will cause the build to fail
  12. error.c
  13. ${CMAKE_CURRENT_BINARY_DIR}/generated.h
  14. )