summaryrefslogtreecommitdiffstats
path: root/Tests/Tutorial/Step5/MathFunctions
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-11-10 20:13:54 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-11-10 20:13:54 (GMT)
commitfed6dae8e92a100c008bbf2b040f6dd5f28f84c5 (patch)
treefd62d8a57166774bad49cc1248ccd7ec503736c1 /Tests/Tutorial/Step5/MathFunctions
parentb94d785df94119c62b50941d193a7b330f1d8919 (diff)
downloadCMake-fed6dae8e92a100c008bbf2b040f6dd5f28f84c5.zip
CMake-fed6dae8e92a100c008bbf2b040f6dd5f28f84c5.tar.gz
CMake-fed6dae8e92a100c008bbf2b040f6dd5f28f84c5.tar.bz2
ENH: some fixes
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
)