From 036cea429e488d13082840729c0aa1d23e9da183 Mon Sep 17 00:00:00 2001 From: ana Date: Thu, 4 Aug 2016 15:04:36 +0300 Subject: [PATCH] Windows compatibility --- tools/PyEditor/src/CMakeLists.txt | 1 + tools/PyEditor/src/PyEditor.h | 2 ++ 2 files changed, 3 insertions(+) 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 -- 2.39.2