summaryrefslogtreecommitdiffstats
path: root/Tests/Tutorial/Step5/MathFunctions
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Tutorial/Step5/MathFunctions')
-rw-r--r--Tests/Tutorial/Step5/MathFunctions/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/Tutorial/Step5/MathFunctions/CMakeLists.txt b/Tests/Tutorial/Step5/MathFunctions/CMakeLists.txt
index 6cc0e17..8ecddfa 100644
--- a/Tests/Tutorial/Step5/MathFunctions/CMakeLists.txt
+++ b/Tests/Tutorial/Step5/MathFunctions/CMakeLists.txt
@@ -1,11 +1,13 @@
# first we add the executable that generates the table
add_executable(MakeTable MakeTable.cxx)
+get_target_property(MakeTableLocation MakeTable LOCATION)
+
# add the command to generate the source code
add_custom_command (
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Table.h
DEPENDS MakeTable
- COMMAND MakeTable
+ COMMAND ${MakeTableLocation}
ARGS ${CMAKE_CURRENT_BINARY_DIR}/Table.h
)