ENH: some fixes
This commit is contained in:
parent
b94d785df9
commit
fed6dae8e9
@ -1,5 +1,6 @@
|
|||||||
// A simple program that computes the square root of a number
|
// A simple program that computes the square root of a number
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "TutorialConfig.h"
|
#include "TutorialConfig.h"
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// A simple program that computes the square root of a number
|
// A simple program that computes the square root of a number
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "TutorialConfig.h"
|
#include "TutorialConfig.h"
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// A simple program that computes the square root of a number
|
// A simple program that computes the square root of a number
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "TutorialConfig.h"
|
#include "TutorialConfig.h"
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// A simple program that computes the square root of a number
|
// A simple program that computes the square root of a number
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "TutorialConfig.h"
|
#include "TutorialConfig.h"
|
||||||
|
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
# first we add the executable that generates the table
|
# first we add the executable that generates the table
|
||||||
add_executable(MakeTable MakeTable.cxx)
|
add_executable(MakeTable MakeTable.cxx)
|
||||||
|
|
||||||
|
get_target_property(MakeTableLocation MakeTable LOCATION)
|
||||||
|
|
||||||
# add the command to generate the source code
|
# add the command to generate the source code
|
||||||
add_custom_command (
|
add_custom_command (
|
||||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Table.h
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Table.h
|
||||||
DEPENDS MakeTable
|
DEPENDS MakeTable
|
||||||
COMMAND MakeTable
|
COMMAND ${MakeTableLocation}
|
||||||
ARGS ${CMAKE_CURRENT_BINARY_DIR}/Table.h
|
ARGS ${CMAKE_CURRENT_BINARY_DIR}/Table.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// A simple program that computes the square root of a number
|
// A simple program that computes the square root of a number
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "TutorialConfig.h"
|
#include "TutorialConfig.h"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user