1
0

MakeTable.cmake 352 B

12345678910
  1. # first we add the executable that generates the table
  2. add_executable(MakeTable MakeTable.cxx)
  3. target_link_libraries(MakeTable PRIVATE tutorial_compiler_flags)
  4. # add the command to generate the source code
  5. add_custom_command(
  6. OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Table.h
  7. COMMAND MakeTable ${CMAKE_CURRENT_BINARY_DIR}/Table.h
  8. DEPENDS MakeTable
  9. )