From e1f2b35723f28b55b786bbe4cbee70a3e54e7da9 Mon Sep 17 00:00:00 2001 From: Markus Ferrell Date: Fri, 3 Mar 2023 10:48:17 -0500 Subject: Tutorial: Refactor MakeTable commands into MakeTable.cmake --- Help/guide/tutorial/Step9/MathFunctions/MakeTable.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Help/guide/tutorial/Step9/MathFunctions/MakeTable.cmake (limited to 'Help/guide/tutorial/Step9/MathFunctions/MakeTable.cmake') diff --git a/Help/guide/tutorial/Step9/MathFunctions/MakeTable.cmake b/Help/guide/tutorial/Step9/MathFunctions/MakeTable.cmake new file mode 100644 index 0000000000..12865a9831 --- /dev/null +++ b/Help/guide/tutorial/Step9/MathFunctions/MakeTable.cmake @@ -0,0 +1,10 @@ +# first we add the executable that generates the table +add_executable(MakeTable MakeTable.cxx) +target_link_libraries(MakeTable PRIVATE tutorial_compiler_flags) + +# add the command to generate the source code +add_custom_command( + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Table.h + COMMAND MakeTable ${CMAKE_CURRENT_BINARY_DIR}/Table.h + DEPENDS MakeTable + ) -- cgit v1.2.1