From fed6dae8e92a100c008bbf2b040f6dd5f28f84c5 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 10 Nov 2005 15:13:54 -0500 Subject: [PATCH] ENH: some fixes --- Tests/Tutorial/Step1/tutorial.cxx | 1 + Tests/Tutorial/Step2/tutorial.cxx | 1 + Tests/Tutorial/Step3/tutorial.cxx | 1 + Tests/Tutorial/Step4/tutorial.cxx | 1 + Tests/Tutorial/Step5/MathFunctions/CMakeLists.txt | 4 +++- Tests/Tutorial/Step5/tutorial.cxx | 1 + 6 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Tests/Tutorial/Step1/tutorial.cxx b/Tests/Tutorial/Step1/tutorial.cxx index 94c65bcce..8ab6dc306 100644 --- a/Tests/Tutorial/Step1/tutorial.cxx +++ b/Tests/Tutorial/Step1/tutorial.cxx @@ -1,5 +1,6 @@ // A simple program that computes the square root of a number #include +#include #include #include "TutorialConfig.h" diff --git a/Tests/Tutorial/Step2/tutorial.cxx b/Tests/Tutorial/Step2/tutorial.cxx index e1f9cd840..82b416f11 100644 --- a/Tests/Tutorial/Step2/tutorial.cxx +++ b/Tests/Tutorial/Step2/tutorial.cxx @@ -1,5 +1,6 @@ // A simple program that computes the square root of a number #include +#include #include #include "TutorialConfig.h" diff --git a/Tests/Tutorial/Step3/tutorial.cxx b/Tests/Tutorial/Step3/tutorial.cxx index e1f9cd840..82b416f11 100644 --- a/Tests/Tutorial/Step3/tutorial.cxx +++ b/Tests/Tutorial/Step3/tutorial.cxx @@ -1,5 +1,6 @@ // A simple program that computes the square root of a number #include +#include #include #include "TutorialConfig.h" diff --git a/Tests/Tutorial/Step4/tutorial.cxx b/Tests/Tutorial/Step4/tutorial.cxx index e1f9cd840..82b416f11 100644 --- a/Tests/Tutorial/Step4/tutorial.cxx +++ b/Tests/Tutorial/Step4/tutorial.cxx @@ -1,5 +1,6 @@ // A simple program that computes the square root of a number #include +#include #include #include "TutorialConfig.h" diff --git a/Tests/Tutorial/Step5/MathFunctions/CMakeLists.txt b/Tests/Tutorial/Step5/MathFunctions/CMakeLists.txt index 6cc0e17b8..8ecddfafd 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 ) diff --git a/Tests/Tutorial/Step5/tutorial.cxx b/Tests/Tutorial/Step5/tutorial.cxx index e1f9cd840..82b416f11 100644 --- a/Tests/Tutorial/Step5/tutorial.cxx +++ b/Tests/Tutorial/Step5/tutorial.cxx @@ -1,5 +1,6 @@ // A simple program that computes the square root of a number #include +#include #include #include "TutorialConfig.h"