From d7d68d8f96e0c97bd5d3132bd0f406fe00e8dc47 Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 5 Feb 2021 13:23:50 +0300 Subject: [PATCH] Compilation under Windows platform. --- src/GEOM_SWIG/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/GEOM_SWIG/CMakeLists.txt b/src/GEOM_SWIG/CMakeLists.txt index e506f9020..6e9a9d95c 100644 --- a/src/GEOM_SWIG/CMakeLists.txt +++ b/src/GEOM_SWIG/CMakeLists.txt @@ -129,7 +129,8 @@ SET(_shared_SCRIPTS GEOM_shared_modules.py ) - +# additional preprocessor / compiler flags +ADD_DEFINITIONS(${OMNIORB_DEFINITIONS} ) SET(GeomHelper_HEADERS GeomHelper.h GeomHelper.i) SET(GeomHelper_SOURCES GeomHelper.cxx ${GeomHelper_HEADERS}) SET_SOURCE_FILES_PROPERTIES(GeomHelper.i PROPERTIES CPLUSPLUS ON) @@ -142,6 +143,10 @@ ELSE() SWIG_ADD_LIBRARY(GeomHelper LANGUAGE python SOURCES ${GeomHelper_SOURCES}) ENDIF() SWIG_LINK_LIBRARIES(GeomHelper ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} GEOMEngine ${KERNEL_SalomeKernelHelpers} ${KERNEL_SalomeDS} ) +SWIG_CHECK_GENERATION(GeomHelper) +IF(WIN32) + SET_TARGET_PROPERTIES(_GeomHelper PROPERTIES DEBUG_OUTPUT_NAME _GeomHelper_d) +ENDIF(WIN32) install(TARGETS _GeomHelper DESTINATION ${SALOME_INSTALL_LIBS}) install(FILES ${GeomHelper_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) SALOME_INSTALL_SCRIPTS("${_swig_SCRIPTS}" ${SALOME_INSTALL_BINS} EXTRA_DPYS "${SWIG_MODULE_GeomHelper_REAL_NAME}") -- 2.39.2