From: ana Date: Thu, 4 Aug 2016 12:04:36 +0000 (+0300) Subject: Windows compatibility X-Git-Tag: V8_1_0rc1~8^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0f15e03e2080c3f871442c7c02a0c65a799aac17;p=modules%2Fgui.git Windows compatibility --- diff --git a/tools/PyEditor/src/CMakeLists.txt b/tools/PyEditor/src/CMakeLists.txt index b8e10e409..94f88dae6 100644 --- a/tools/PyEditor/src/CMakeLists.txt +++ b/tools/PyEditor/src/CMakeLists.txt @@ -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) diff --git a/tools/PyEditor/src/PyEditor.h b/tools/PyEditor/src/PyEditor.h index 165f53a77..28c1e2a3d 100644 --- a/tools/PyEditor/src/PyEditor.h +++ b/tools/PyEditor/src/PyEditor.h @@ -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