diff --git a/vtkm/CMakeLists.txt b/vtkm/CMakeLists.txt index 21cc412c7..12b2ed3df 100644 --- a/vtkm/CMakeLists.txt +++ b/vtkm/CMakeLists.txt @@ -18,6 +18,14 @@ ## this software. ##============================================================================ +# Configure version file. (Other configuration in internal/Configure.h) +vtkm_get_kit_name(kit_name kit_dir) +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Version.h.in + ${CMAKE_BINARY_DIR}/include/${kit_dir}/Version.h + @ONLY) +vtkm_install_headers( + vtkm ${CMAKE_BINARY_DIR}/include/${kit_dir}/Version.h) + set(headers Assert.h BinaryPredicates.h diff --git a/vtkm/Version.h.in b/vtkm/Version.h.in new file mode 100644 index 000000000..80e3ebd82 --- /dev/null +++ b/vtkm/Version.h.in @@ -0,0 +1,29 @@ +//============================================================================ +// Copyright (c) Kitware, Inc. +// All rights reserved. +// See LICENSE.txt for details. +// This software is distributed WITHOUT ANY WARRANTY; without even +// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +// PURPOSE. See the above copyright notice for more information. +// +// Copyright 2017 Sandia Corporation. +// Copyright 2017 UT-Battelle, LLC. +// Copyright 2017 Los Alamos National Security. +// +// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, +// the U.S. Government retains certain rights in this software. +// +// Under the terms of Contract DE-AC52-06NA25396 with Los Alamos National +// Laboratory (LANL), the U.S. Government retains certain rights in +// this software. +//============================================================================ +#ifndef vtk_m_Version_h +#define vtk_m_Version_h + +#define VTKM_VERSION_MAJOR @VTKm_VERSION_MAJOR@ +#define VTKM_VERSION_MINOR @VTKm_VERSION_MINOR@ +#define VTKM_VERSION_PATCH @VTKm_VERSION_PATCH@ +#define VTKM_VERSION_FULL "@VTKm_VERSION_FULL@" +#define VTKM_VERSION "@VTKm_VERSION@" + +#endif //vtk_m_Version_h