Commit 04ead06a authored by jcfr's avatar jcfr
Browse files

ENH: SlicerQT - Added vtkConfigureVersion.h.in containing #ifdef related to Slicer version.

It allows to expose the following variable to the code:
  Slicer3_VERSION_MAJOR
  Slicer3_VERSION_MINOR
  Slicer3_VERSION_PATCH
  Slicer3_VERSION
  Slicer3_VERSION_FULL

git-svn-id: http://svn.slicer.org/Slicer4/trunk@11983 3bd1e089-480b-0410-8dfb-8563597acbee
parent eb082a9a
......@@ -394,36 +394,46 @@ ENDIF(Slicer3_USE_QT)
# --------------------------------------------------------------------------
# Configure and install headers
include_directories(
"${CMAKE_CURRENT_SOURCE_DIR}"
"${CMAKE_CURRENT_BINARY_DIR}"
)
configure_file(
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/vtkSlicerConfigure.h.in
${CMAKE_CURRENT_BINARY_DIR}/vtkSlicerConfigure.h
)
configure_file(
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/vtkSlicerVersionConfigure.h.in
${CMAKE_CURRENT_BINARY_DIR}/vtkSlicerVersionConfigure.h
)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/Scripts/runValgrind.sh.in
${CMAKE_CURRENT_BINARY_DIR}/Scripts/runValgrind.sh
)
configure_file(
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/Scripts/computeCodeCoverageLocally.sh.in
${CMAKE_CURRENT_BINARY_DIR}/Scripts/computeCodeCoverageLocally.sh
)
configure_file(
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/Scripts/runExperimentalOffScreen.sh.in
${CMAKE_CURRENT_BINARY_DIR}/Scripts/runExperimentalOffScreen.sh
)
install(FILES
INCLUDE_DIRECTORIES(
"${CMAKE_CURRENT_SOURCE_DIR}"
"${CMAKE_CURRENT_BINARY_DIR}"
)
INSTALL(FILES
"${CMAKE_CURRENT_BINARY_DIR}/vtkSlicerConfigure.h"
DESTINATION ${Slicer3_INSTALL_INCLUDE_DIR} COMPONENT Development
)
INSTALL(FILES
"${CMAKE_CURRENT_BINARY_DIR}/vtkSlicerVersionConfigure.h"
DESTINATION ${Slicer3_INSTALL_INCLUDE_DIR} COMPONENT Development
)
#-----------------------------------------------------------------------------
# Generate Slicer3Version.txt
......
/*=auto=========================================================================
Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH)
All Rights Reserved.
See Doc/copyright/copyright.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Program: 3D Slicer
=========================================================================auto=*/
#define Slicer3_VERSION_MAJOR @Slicer3_VERSION_MAJOR@
#define Slicer3_VERSION_MINOR @Slicer3_VERSION_MINOR@
#define Slicer3_VERSION_PATCH @Slicer3_VERSION_PATCH@
#define Slicer3_VERSION "@Slicer3_VERSION@"
#define Slicer3_VERSION_FULL "@Slicer3_VERSION_FULL@"
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