Commit f1c50a57 authored by jcfr's avatar jcfr

ENH: Add revision, builddate, ... into to vtkSlicerVersionConfigure.h.in

git-svn-id: http://svn.slicer.org/Slicer4/trunk@17101 3bd1e089-480b-0410-8dfb-8563597acbee
parent a767841e
......@@ -542,35 +542,6 @@ IF(Slicer_BUILD_QTSCRIPTEDMODULES)
SET(Slicer_INSTALL_QTSCRIPTEDMODULES_SHARE_DIR "${Slicer_INSTALL_ROOT}/${Slicer_QTSCRIPTEDMODULES_SHARE_DIR}")
ENDIF()
# --------------------------------------------------------------------------
# Configure and install headers
# --------------------------------------------------------------------------
SET(files
vtkSlicerConfigure.h
vtkSlicerVersionConfigure.h
Scripts/runValgrind.sh
Scripts/runValgrindForOneModule.sh
Scripts/runValgrindForOneModuleWithSlicer4AndQT.sh
Scripts/computeCodeCoverageLocally.sh
Scripts/computeCodeCoverageForOneTest.sh
Scripts/runExperimentalOffScreen.sh
)
FOREACH(f ${files})
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/${f}.in
${CMAKE_CURRENT_BINARY_DIR}/${f}
)
ENDFOREACH()
IF(NOT Slicer_INSTALL_NO_DEVELOPMENT)
INSTALL(FILES
"${CMAKE_CURRENT_BINARY_DIR}/vtkSlicerConfigure.h"
"${CMAKE_CURRENT_BINARY_DIR}/vtkSlicerVersionConfigure.h"
DESTINATION ${Slicer_INSTALL_INCLUDE_DIR} COMPONENT Development
)
ENDIF()
#-----------------------------------------------------------------------------
# Set COVERAGE_{C,CXX}_FLAGS variables
#-----------------------------------------------------------------------------
......@@ -608,6 +579,34 @@ INSTALL(FILES
COMPONENT Development
)
# --------------------------------------------------------------------------
# Configure and install headers
# --------------------------------------------------------------------------
SET(files
vtkSlicerConfigure.h
vtkSlicerVersionConfigure.h
Scripts/runValgrind.sh
Scripts/runValgrindForOneModule.sh
Scripts/runValgrindForOneModuleWithSlicer4AndQT.sh
Scripts/computeCodeCoverageLocally.sh
Scripts/computeCodeCoverageForOneTest.sh
Scripts/runExperimentalOffScreen.sh
)
FOREACH(f ${files})
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/${f}.in
${CMAKE_CURRENT_BINARY_DIR}/${f}
)
ENDFOREACH()
IF(NOT Slicer_INSTALL_NO_DEVELOPMENT)
INSTALL(FILES
"${CMAKE_CURRENT_BINARY_DIR}/vtkSlicerConfigure.h"
"${CMAKE_CURRENT_BINARY_DIR}/vtkSlicerVersionConfigure.h"
DESTINATION ${Slicer_INSTALL_INCLUDE_DIR} COMPONENT Development
)
ENDIF()
#-----------------------------------------------------------------------------
# Includes
#-----------------------------------------------------------------------------
......
......@@ -19,4 +19,9 @@
#define Slicer_VERSION "@Slicer_VERSION@"
#define Slicer_VERSION_FULL "@Slicer_VERSION_FULL@"
#define Slicer_BUILD "@Slicer_BUILD@"
#define Slicer_BUILDDATE "@Slicer_BUILDDATE@"
#define Slicer_WC_URL "@Slicer_WC_URL@"
#define Slicer_WC_REVISION "@Slicer_WC_REVISION@"
#endif // __vtkSlicerVersionConfigure_h
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment