diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a003954..c756c441 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -413,7 +413,7 @@ if(USE_CGNS) endif(NOT WIN32 AND NOT APPLE) endif(USE_CGNS) -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/netgen_version.hpp DESTINATION ${NG_INSTALL_DIR_INCLUDE}/include COMPONENT netgen_devel) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/netgen_version.hpp ${CMAKE_CURRENT_BINARY_DIR}/netgen_config.hpp DESTINATION ${NG_INSTALL_DIR_INCLUDE}/include COMPONENT netgen_devel) add_subdirectory(libsrc) add_subdirectory(ng) diff --git a/cmake/generate_version_file.cmake b/cmake/generate_version_file.cmake index de709298..b8df93c2 100644 --- a/cmake/generate_version_file.cmake +++ b/cmake/generate_version_file.cmake @@ -61,3 +61,32 @@ else() file(WRITE ${BDIR}/netgen_version.hpp ${new_version_file_string}) endif() +file(GENERATE OUTPUT netgen_config.hpp CONTENT +"\ +#ifndef NETGEN_CONFIG_HPP_INCLUDED___ +#define NETGEN_CONFIG_HPP_INCLUDED___ + +#define NETGEN_USE_NATIVE_ARCH $ +#define NETGEN_USE_GUI $ +#define NETGEN_USE_PYTHON $ +#define NETGEN_USE_MPI $ +#define NETGEN_USE_MPI4PY $ +#define NETGEN_USE_OCC $ +#define NETGEN_USE_JPEG $ +#define NETGEN_USE_MPEG $ +#define NETGEN_USE_CGNS $ +#define NETGEN_USE_NUMA $ +#define NETGEN_INTEL_MIC $ +#define NETGEN_INSTALL_PROFILES $ +#define NETGEN_USE_CCACHE $ +#define NETGEN_USE_INTERNAL_TCL $ +#define NETGEN_ENABLE_UNIT_TESTS $ +#define NETGEN_ENABLE_CPP_CORE_GUIDELINES_CHECK $ +#define NETGEN_USE_SPDLOG $ +#define NETGEN_DEBUG_LOG $ +#define NETGEN_CHECK_RANGE $ +#define NETGEN_BUILD_STUB_FILES $ +#define NETGEN_BUILD_FOR_CONDA $ + +#endif // NETGEN_CONFIG_HPP_INCLUDED___ +")