From: rnv Date: Fri, 5 Feb 2021 10:23:50 +0000 (+0300) Subject: Compilation under Windows platform. X-Git-Tag: V9_7_0a1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d7d68d8f96e0c97bd5d3132bd0f406fe00e8dc47;p=modules%2Fgeom.git Compilation under Windows platform. --- 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}")