1 /*! 2 * \file NUMODIS/Config.hxx 3 * \brief 4 * \author Thomas Helfer 5 * \date 08 juin 2017 6 * \copyright Copyright (C) 2006-2018 CEA/DEN, EDF R&D. All rights 7 * reserved. 8 * This project is publicly released under either the GNU GPL Licence 9 * or the CECILL-A licence. A copy of thoses licences are delivered 10 * with the sources of TFEL. CEA or EDF may also distribute this 11 * project under specific licensing conditions. 12 */ 13 14 #ifndef LIB_NUMODIS_CONFIG_HXX 15 #define LIB_NUMODIS_CONFIG_HXX 16 17 #include"TFEL/Config/TFELConfig.hxx" 18 19 /* 20 * Defining macros by librairies using cmake conventions. 21 * When compiling libfoo, cmake defines the macro foo_EXPORTS. 22 * This allows to distinguish import/export definitions of symbols 23 */ 24 25 #if defined _WIN32 || defined _WIN64 ||defined __CYGWIN__ 26 # if defined TFELNUMODIS_EXPORTS 27 # define TFELNUMODIS_VISIBILITY_EXPORT TFEL_VISIBILITY_EXPORT 28 # else 29 # ifndef TFEL_STATIC_BUILD 30 # define TFELNUMODIS_VISIBILITY_EXPORT TFEL_VISIBILITY_IMPORT 31 # else 32 # define TFELNUMODIS_VISIBILITY_EXPORT 33 # endif 34 # endif 35 #else 36 # define TFELNUMODIS_VISIBILITY_EXPORT TFEL_VISIBILITY_EXPORT 37 #endif /* LIB_TFEL_NUMODIS_HXX */ 38 39 #endif /* LIB_NUMODIS_CONFIG_HXX */ 40