ENH: switch to new install commands to match book text
This commit is contained in:
parent
47c53e867f
commit
58f0cad472
|
@ -30,8 +30,9 @@ add_executable (Tutorial tutorial.cxx)
|
|||
target_link_libraries (Tutorial ${EXTRA_LIBS})
|
||||
|
||||
# add the install targets
|
||||
install_targets (/bin Tutorial)
|
||||
install_files (/include FILES "${PROJECT_BINARY_DIR}/TutorialConfig.h")
|
||||
install (TARGETS Tutorial DESTINATION bin)
|
||||
install (FILES "${PROJECT_BINARY_DIR}/TutorialConfig.h"
|
||||
DESTINATION include)
|
||||
|
||||
|
||||
# enable testing
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
add_library(MathFunctions mysqrt.cxx)
|
||||
|
||||
install_targets (/bin MathFunctions)
|
||||
install_files (/include FILES MathFunctions.h)
|
||||
install (TARGETS MathFunctions DESTINATION bin)
|
||||
install (FILES MathFunctions.h DESTINATION include)
|
||||
|
|
|
@ -35,8 +35,9 @@ add_executable (Tutorial tutorial.cxx)
|
|||
target_link_libraries (Tutorial ${EXTRA_LIBS})
|
||||
|
||||
# add the install targets
|
||||
install_targets (/bin Tutorial)
|
||||
install_files (/include FILES "${PROJECT_BINARY_DIR}/TutorialConfig.h")
|
||||
install (TARGETS Tutorial DESTINATION bin)
|
||||
install (FILES "${PROJECT_BINARY_DIR}/TutorialConfig.h"
|
||||
DESTINATION include)
|
||||
|
||||
# enable testing
|
||||
enable_testing ()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
add_library(MathFunctions mysqrt.cxx)
|
||||
|
||||
install_targets (/bin MathFunctions)
|
||||
install_files (/include FILES MathFunctions.h)
|
||||
install (TARGETS MathFunctions DESTINATION bin)
|
||||
install (FILES MathFunctions.h DESTINATION include)
|
||||
|
|
|
@ -35,8 +35,9 @@ add_executable (Tutorial tutorial.cxx)
|
|||
target_link_libraries (Tutorial ${EXTRA_LIBS})
|
||||
|
||||
# add the install targets
|
||||
install_targets (/bin Tutorial)
|
||||
install_files (/include FILES "${PROJECT_BINARY_DIR}/TutorialConfig.h")
|
||||
install (TARGETS Tutorial DESTINATION bin)
|
||||
install (FILES "${PROJECT_BINARY_DIR}/TutorialConfig.h"
|
||||
DESTINATION include)
|
||||
|
||||
# enable testing
|
||||
enable_testing ()
|
||||
|
|
|
@ -22,5 +22,5 @@ include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
|
|||
# add the main library
|
||||
add_library(MathFunctions mysqrt.cxx)
|
||||
|
||||
install_targets (/bin MathFunctions)
|
||||
install_files (/include FILES MathFunctions.h)
|
||||
install (TARGETS MathFunctions DESTINATION bin)
|
||||
install (FILES MathFunctions.h DESTINATION include)
|
||||
|
|
|
@ -35,8 +35,9 @@ add_executable (Tutorial tutorial.cxx)
|
|||
target_link_libraries (Tutorial ${EXTRA_LIBS})
|
||||
|
||||
# add the install targets
|
||||
install_targets (/bin Tutorial)
|
||||
install_files (/include FILES "${PROJECT_BINARY_DIR}/TutorialConfig.h")
|
||||
install (TARGETS Tutorial DESTINATION bin)
|
||||
install (FILES "${PROJECT_BINARY_DIR}/TutorialConfig.h"
|
||||
DESTINATION include)
|
||||
|
||||
# enable testing
|
||||
enable_testing ()
|
||||
|
|
|
@ -22,5 +22,5 @@ include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
|
|||
# add the main library
|
||||
add_library(MathFunctions mysqrt.cxx)
|
||||
|
||||
install_targets (/bin MathFunctions)
|
||||
install_files (/include FILES MathFunctions.h)
|
||||
install (TARGETS MathFunctions DESTINATION bin)
|
||||
install (FILES MathFunctions.h DESTINATION include)
|
||||
|
|
|
@ -35,8 +35,9 @@ add_executable (Tutorial tutorial.cxx)
|
|||
target_link_libraries (Tutorial ${EXTRA_LIBS})
|
||||
|
||||
# add the install targets
|
||||
install_targets (/bin Tutorial)
|
||||
install_files (/include FILES "${PROJECT_BINARY_DIR}/TutorialConfig.h")
|
||||
install (TARGETS Tutorial DESTINATION bin)
|
||||
install (FILES "${PROJECT_BINARY_DIR}/TutorialConfig.h"
|
||||
DESTINATION include)
|
||||
|
||||
# enable testing
|
||||
enable_testing ()
|
||||
|
|
|
@ -22,5 +22,5 @@ include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
|
|||
# add the main library
|
||||
add_library(MathFunctions mysqrt.cxx)
|
||||
|
||||
install_targets (/bin MathFunctions)
|
||||
install_files (/include FILES MathFunctions.h)
|
||||
install (TARGETS MathFunctions DESTINATION bin)
|
||||
install (FILES MathFunctions.h DESTINATION include)
|
||||
|
|
Loading…
Reference in New Issue