Commit 921eb2b2 authored by Brad King's avatar Brad King

Add `vtkkwiml` module to provide external KWIML library

Add a module to provide the Kitware Information Macro Library (KWIML).
For now always use a bundled copy of the KWIML source.  An option to
use a system-installed KWIML can be added later.

KWIML provides macros for information about fundamental types
(existence, size, signedness, format macros, etc.) without using any
try_compile tests.  VTK will be able to use these macros to enable
multi-architecture builds on some platforms.  We should also be able to
eliminate some try_compile tests to speed up initial configuration.
parent fca3fb51
set(vtkkwiml_LIBRARIES "")
vtk_module_impl()
vtk_module_export_info()
configure_file(vtk_kwiml.h.in vtk_kwiml.h @ONLY)
if (NOT VTK_INSTALL_NO_DEVELOPMENT)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/vtk_kwiml.h
DESTINATION ${VTK_INSTALL_INCLUDE_DIR}
COMPONENT Development)
endif()
if(NOT VTK_INSTALL_NO_DEVELOPMENT)
set(KWIML_INSTALL_INCLUDE_DIR ${VTK_INSTALL_INCLUDE_DIR})
set(KWIML_INSTALL_INCLUDE_OPTIONS COMPONENT Development)
set(KWIML_INCLUDE_PREFIX vtkkwiml)
endif()
if(BUILD_TESTING)
set(KWIML_TEST_ENABLE 1)
set(KWIML_TEST_PREFIX vtkkwiml)
endif()
add_subdirectory(vtkkwiml)
vtk_module(vtkkwiml EXCLUDE_FROM_WRAPPING)
/*=========================================================================
Program: Visualization Toolkit
Module: vtk_kwiml.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm 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.
=========================================================================*/
#ifndef vtk_kwiml_h
#define vtk_kwiml_h
/* Use the KWIML library configured for VTK. */
#include "vtkkwiml/abi.h"
#include "vtkkwiml/int.h"
#endif
/* Forward include for source-tree layout. */
#include "include/kwiml/abi.h"
/* Forward include for source-tree layout. */
#include "include/kwiml/int.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