ENH: some fixes
This commit is contained in:
parent
a41c41ec54
commit
5a007dc0e3
|
@ -4,6 +4,9 @@ project (Tutorial)
|
||||||
set (Tutorial_VERSION_MAJOR 1)
|
set (Tutorial_VERSION_MAJOR 1)
|
||||||
set (Tutorial_VERSION_MINOR 0)
|
set (Tutorial_VERSION_MINOR 0)
|
||||||
|
|
||||||
|
# should we use our own math functions
|
||||||
|
option(USE_MYMATH "Use tutorial provided math implementation" ON)
|
||||||
|
|
||||||
# configure a header file to pass some of the CMake settings
|
# configure a header file to pass some of the CMake settings
|
||||||
# to the source code
|
# to the source code
|
||||||
configure_file (
|
configure_file (
|
||||||
|
@ -11,9 +14,6 @@ configure_file (
|
||||||
"${PROJECT_BINARY_DIR}/TutorialConfig.h"
|
"${PROJECT_BINARY_DIR}/TutorialConfig.h"
|
||||||
)
|
)
|
||||||
|
|
||||||
# should we use our own math functions
|
|
||||||
option(USE_MYMATH "Use tutorial provided math implementation" ON)
|
|
||||||
|
|
||||||
# add the binary tree to the search path for include files
|
# add the binary tree to the search path for include files
|
||||||
# so that we will find TutorialConfig.h
|
# so that we will find TutorialConfig.h
|
||||||
include_directories ("${PROJECT_BINARY_DIR}")
|
include_directories ("${PROJECT_BINARY_DIR}")
|
||||||
|
|
|
@ -4,6 +4,9 @@ project (Tutorial)
|
||||||
set (Tutorial_VERSION_MAJOR 1)
|
set (Tutorial_VERSION_MAJOR 1)
|
||||||
set (Tutorial_VERSION_MINOR 0)
|
set (Tutorial_VERSION_MINOR 0)
|
||||||
|
|
||||||
|
# should we use our own math functions
|
||||||
|
option(USE_MYMATH "Use tutorial provided math implementation" ON)
|
||||||
|
|
||||||
# configure a header file to pass some of the CMake settings
|
# configure a header file to pass some of the CMake settings
|
||||||
# to the source code
|
# to the source code
|
||||||
configure_file (
|
configure_file (
|
||||||
|
@ -11,9 +14,6 @@ configure_file (
|
||||||
"${PROJECT_BINARY_DIR}/TutorialConfig.h"
|
"${PROJECT_BINARY_DIR}/TutorialConfig.h"
|
||||||
)
|
)
|
||||||
|
|
||||||
# should we use our own math functions
|
|
||||||
option(USE_MYMATH "Use tutorial provided math implementation" ON)
|
|
||||||
|
|
||||||
# add the binary tree to the search path for include files
|
# add the binary tree to the search path for include files
|
||||||
# so that we will find TutorialConfig.h
|
# so that we will find TutorialConfig.h
|
||||||
include_directories ("${PROJECT_BINARY_DIR}")
|
include_directories ("${PROJECT_BINARY_DIR}")
|
||||||
|
|
|
@ -9,6 +9,9 @@ include (${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake)
|
||||||
check_function_exists (log HAVE_LOG)
|
check_function_exists (log HAVE_LOG)
|
||||||
check_function_exists (exp HAVE_EXP)
|
check_function_exists (exp HAVE_EXP)
|
||||||
|
|
||||||
|
# should we use our own math functions
|
||||||
|
option(USE_MYMATH "Use tutorial provided math implementation" ON)
|
||||||
|
|
||||||
# configure a header file to pass some of the CMake settings
|
# configure a header file to pass some of the CMake settings
|
||||||
# to the source code
|
# to the source code
|
||||||
configure_file (
|
configure_file (
|
||||||
|
@ -16,9 +19,6 @@ configure_file (
|
||||||
"${PROJECT_BINARY_DIR}/TutorialConfig.h"
|
"${PROJECT_BINARY_DIR}/TutorialConfig.h"
|
||||||
)
|
)
|
||||||
|
|
||||||
# should we use our own math functions
|
|
||||||
option(USE_MYMATH "Use tutorial provided math implementation" ON)
|
|
||||||
|
|
||||||
# add the binary tree to the search path for include files
|
# add the binary tree to the search path for include files
|
||||||
# so that we will find TutorialConfig.h
|
# so that we will find TutorialConfig.h
|
||||||
include_directories ("${PROJECT_BINARY_DIR}")
|
include_directories ("${PROJECT_BINARY_DIR}")
|
||||||
|
|
|
@ -9,6 +9,9 @@ include (${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake)
|
||||||
check_function_exists (log HAVE_LOG)
|
check_function_exists (log HAVE_LOG)
|
||||||
check_function_exists (exp HAVE_EXP)
|
check_function_exists (exp HAVE_EXP)
|
||||||
|
|
||||||
|
# should we use our own math functions
|
||||||
|
option(USE_MYMATH "Use tutorial provided math implementation" ON)
|
||||||
|
|
||||||
# configure a header file to pass some of the CMake settings
|
# configure a header file to pass some of the CMake settings
|
||||||
# to the source code
|
# to the source code
|
||||||
configure_file (
|
configure_file (
|
||||||
|
@ -16,9 +19,6 @@ configure_file (
|
||||||
"${PROJECT_BINARY_DIR}/TutorialConfig.h"
|
"${PROJECT_BINARY_DIR}/TutorialConfig.h"
|
||||||
)
|
)
|
||||||
|
|
||||||
# should we use our own math functions
|
|
||||||
option(USE_MYMATH "Use tutorial provided math implementation" ON)
|
|
||||||
|
|
||||||
# add the binary tree to the search path for include files
|
# add the binary tree to the search path for include files
|
||||||
# so that we will find TutorialConfig.h
|
# so that we will find TutorialConfig.h
|
||||||
include_directories ("${PROJECT_BINARY_DIR}")
|
include_directories ("${PROJECT_BINARY_DIR}")
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# first we add the exetuable that generates the table
|
# first we add the executable that generates the table
|
||||||
add_executable(MakeTable MakeTable.cxx)
|
add_executable(MakeTable MakeTable.cxx)
|
||||||
|
|
||||||
# add the command to generate the source code
|
# add the command to generate the source code
|
||||||
|
|
Loading…
Reference in New Issue