diff options
author | Ken Martin <ken.martin@kitware.com> | 2005-11-10 20:13:54 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2005-11-10 20:13:54 (GMT) |
commit | fed6dae8e92a100c008bbf2b040f6dd5f28f84c5 (patch) | |
tree | fd62d8a57166774bad49cc1248ccd7ec503736c1 | |
parent | b94d785df94119c62b50941d193a7b330f1d8919 (diff) | |
download | CMake-fed6dae8e92a100c008bbf2b040f6dd5f28f84c5.zip CMake-fed6dae8e92a100c008bbf2b040f6dd5f28f84c5.tar.gz CMake-fed6dae8e92a100c008bbf2b040f6dd5f28f84c5.tar.bz2 |
ENH: some fixes
-rw-r--r-- | Tests/Tutorial/Step1/tutorial.cxx | 1 | ||||
-rw-r--r-- | Tests/Tutorial/Step2/tutorial.cxx | 1 | ||||
-rw-r--r-- | Tests/Tutorial/Step3/tutorial.cxx | 1 | ||||
-rw-r--r-- | Tests/Tutorial/Step4/tutorial.cxx | 1 | ||||
-rw-r--r-- | Tests/Tutorial/Step5/MathFunctions/CMakeLists.txt | 4 | ||||
-rw-r--r-- | Tests/Tutorial/Step5/tutorial.cxx | 1 |
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" |