]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Compilation under Windows platform.
authorrnv <rnv@opencascade.com>
Fri, 5 Feb 2021 10:23:50 +0000 (13:23 +0300)
committerrnv <rnv@opencascade.com>
Fri, 5 Feb 2021 10:23:50 +0000 (13:23 +0300)
src/GEOM_SWIG/CMakeLists.txt

index e506f9020c2dcb186cc0b7cac59a8c535809e537..6e9a9d95c9485728010172d40a958a14758fd3c2 100644 (file)
@@ -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}")