mirror of
https://github.com/OpenFOAM/ThirdParty-6.git
synced 2025-12-08 06:57:43 +00:00
39 lines
1.3 KiB
C
39 lines
1.3 KiB
C
/*=========================================================================
|
|
|
|
Program: Visualization Toolkit
|
|
Module: vtk_jsoncpp.h.in
|
|
|
|
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_jsoncpp_h
|
|
#define vtk_jsoncpp_h
|
|
|
|
/* Use the JsonCpp library configured for VTK. */
|
|
#cmakedefine VTK_USE_SYSTEM_JSONCPP
|
|
#ifdef VTK_USE_SYSTEM_JSONCPP
|
|
#cmakedefine VTK_SYSTEM_JSONCPP_SHARED
|
|
// Needed for Windows declspec import logic
|
|
# if !defined(JSON_DLL) && defined(_WIN32) && defined(VTK_SYSTEM_JSONCPP_SHARED)
|
|
# define JSON_DLL
|
|
# endif
|
|
# include <json/json.h>
|
|
# ifndef JSON_FORWARDS_H_INCLUDED
|
|
# error Incorrect header included, check your include paths for conflicts
|
|
# endif
|
|
#else
|
|
// Needed for Windows declspec import logic
|
|
# if !defined(JSON_DLL) && defined(_WIN32) && defined(VTK_BUILD_SHARED_LIBS)
|
|
# define JSON_DLL
|
|
# endif
|
|
# include <vtkjsoncpp/json/json.h>
|
|
#endif
|
|
|
|
#endif
|