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)
#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