summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Tutorial/Step1/tutorial.cxx1
-rw-r--r--Tests/Tutorial/Step2/tutorial.cxx1
-rw-r--r--Tests/Tutorial/Step3/tutorial.cxx1
-rw-r--r--Tests/Tutorial/Step4/tutorial.cxx1
-rw-r--r--Tests/Tutorial/Step5/MathFunctions/CMakeLists.txt4
-rw-r--r--Tests/Tutorial/Step5/tutorial.cxx1
6 files changed, 8 insertions, 1 deletions
diff --git a/Tests/Tutorial/Step1/tutorial.cxx b/Tests/Tutorial/Step1/tutorial.cxx
index 94c65bc..8ab6dc3 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 <stdio.h>
+#include <stdlib.h>
#include <math.h>
#include "TutorialConfig.h"
diff --git a/Tests/Tutorial/Step2/tutorial.cxx b/Tests/Tutorial/Step2/tutorial.cxx
index e1f9cd8..82b416f 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 <stdio.h>
+#include <stdlib.h>
#include <math.h>
#include "TutorialConfig.h"
diff --git a/Tests/Tutorial/Step3/tutorial.cxx b/Tests/Tutorial/Step3/tutorial.cxx
index e1f9cd8..82b416f 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 <stdio.h>
+#include <stdlib.h>
#include <math.h>
#include "TutorialConfig.h"
diff --git a/Tests/Tutorial/Step4/tutorial.cxx b/Tests/Tutorial/Step4/tutorial.cxx
index e1f9cd8..82b416f 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 <stdio.h>
+#include <stdlib.h>
#include <math.h>
#include "TutorialConfig.h"
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
)
diff --git a/Tests/Tutorial/Step5/tutorial.cxx b/Tests/Tutorial/Step5/tutorial.cxx
index e1f9cd8..82b416f 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 <stdio.h>
+#include <stdlib.h>
#include <math.h>
#include "TutorialConfig.h"