]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Windows compatibility
authorana <ana@opencascade.com>
Thu, 4 Aug 2016 12:04:36 +0000 (15:04 +0300)
committerrnv <rnv@opencascade.com>
Thu, 18 Aug 2016 13:17:05 +0000 (16:17 +0300)
tools/PyEditor/src/CMakeLists.txt
tools/PyEditor/src/PyEditor.h

index b8e10e409b313048329ae0506753fd3cda1524b7..94f88dae6efefe83dff84ee03767c69a16d28a70 100644 (file)
@@ -106,6 +106,7 @@ IF(PYEDITOR_BUILD_EXE)
   ADD_EXECUTABLE(pyeditorexe ${pyeditorexe_SOURCES})
   SET_TARGET_PROPERTIES(pyeditorexe PROPERTIES OUTPUT_NAME "pyeditor")
   TARGET_LINK_LIBRARIES(pyeditorexe ${_link_LIBRARIES})
+  TARGET_COMPILE_DEFINITIONS(pyeditorexe PUBLIC "-DPYEDITOREXE")
   INSTALL(TARGETS pyeditorexe EXPORT ${TOOLS_EXPORT_NAME}TargetGroup DESTINATION ${PYEDITOR_INSTALL_BINS})
 ENDIF(PYEDITOR_BUILD_EXE)
 
index 165f53a7742aa139a754f126d5bdfb6357dcdaf3..28c1e2a3dcf5d729b1373031c5308144afe944f0 100644 (file)
@@ -24,6 +24,8 @@
 
 #if defined PYEDITOR_EXPORTS || defined PyEditor_EXPORTS
 #define PYEDITOR_EXPORT __declspec(dllexport)
+#elif defined PYEDITOREXE
+#define PYEDITOR_EXPORT
 #else
 #define PYEDITOR_EXPORT __declspec(dllimport)
 #endif