From: rnv Date: Tue, 9 Feb 2021 09:29:37 +0000 (+0300) Subject: Build under Windows. X-Git-Tag: V9_7_0a1~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aa88721630d7532bcb98fc724d76903d715473b5;p=modules%2Fsmesh.git Build under Windows. --- diff --git a/src/SMESH_SWIG/CMakeLists.txt b/src/SMESH_SWIG/CMakeLists.txt index 4defb70f7..b6768f40b 100644 --- a/src/SMESH_SWIG/CMakeLists.txt +++ b/src/SMESH_SWIG/CMakeLists.txt @@ -110,6 +110,8 @@ SET(StdMeshers_SCRIPTS StdMeshersBuilder.py ) +# additional preprocessor / compiler flags +ADD_DEFINITIONS(${OMNIORB_DEFINITIONS}) SET(SMeshHelper_HEADERS SMeshHelper.h SMeshHelper.i) SET(SMeshHelper_SOURCES SMeshHelper.cxx ${SMeshHelper_HEADERS}) SET_SOURCE_FILES_PROPERTIES(SMeshHelper.i PROPERTIES CPLUSPLUS ON) @@ -122,6 +124,10 @@ ELSE() SWIG_ADD_LIBRARY(SMeshHelper LANGUAGE python SOURCES ${SMeshHelper_SOURCES}) ENDIF() SWIG_LINK_LIBRARIES(SMeshHelper ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} SMESHEngine ) +SWIG_CHECK_GENERATION(SMeshHelper) +IF(WIN32) + SET_TARGET_PROPERTIES(_SMeshHelper PROPERTIES DEBUG_OUTPUT_NAME _SMeshHelper_d) +ENDIF(WIN32) install(TARGETS _SMeshHelper DESTINATION ${SALOME_INSTALL_LIBS}) install(FILES ${SMeshHelper_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) SALOME_INSTALL_SCRIPTS("${_swig_SCRIPTS}" ${SALOME_INSTALL_BINS} EXTRA_DPYS "${SWIG_MODULE_SMeshHelper_REAL_NAME}")