diff --git a/CMakeLists.txt b/CMakeLists.txt index 90b1dd895..8cf41bce6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -137,7 +137,7 @@ ENDIF() ## GUI specifics ## -FIND_PACKAGE(SalomeSIP REQUIRED) # should come after Python and before PyQt +#FIND_PACKAGE(SalomeSIP REQUIRED) # should come after Python and before PyQt # Build with GUI observers feature IF(SALOME_GUI_USE_OBSERVERS) diff --git a/src/LightApp/LightApp_ExtInfoDlg.cxx b/src/LightApp/LightApp_ExtInfoDlg.cxx index 7f1ffa268..29d9dce49 100644 --- a/src/LightApp/LightApp_ExtInfoDlg.cxx +++ b/src/LightApp/LightApp_ExtInfoDlg.cxx @@ -273,7 +273,11 @@ QByteArray LightApp_ExtInfoDlg::renderExtTreeGraph(const GraphWrapper& graph) co MESSAGE("Render dependency tree...\n"); char* buffer = nullptr; +#if defined(__APPLE__) + size_t bufferLength = 0; +#else unsigned int bufferLength = 0; +#endif res = gvRenderData(gvc, extTreeGraph, "svg", &buffer, &bufferLength); if (res) { diff --git a/src/OpenGLUtils/OpenGLUtils_FrameBuffer.cxx b/src/OpenGLUtils/OpenGLUtils_FrameBuffer.cxx index fcfb91ab7..b2142f690 100644 --- a/src/OpenGLUtils/OpenGLUtils_FrameBuffer.cxx +++ b/src/OpenGLUtils/OpenGLUtils_FrameBuffer.cxx @@ -151,9 +151,10 @@ OpenGLUtils_FrameBuffer::~OpenGLUtils_FrameBuffer() release(); } + bool OpenGLUtils_FrameBuffer::init( const GLsizei& xSize, const GLsizei& ySize ) { -#if defined(VTK_OPENGL2) && ! defined(WIN32) +#if defined(VTK_OPENGL2) && ! defined(WIN32) && !defined(__APPLE__) int n = 0; std::ostringstream strm; glGetIntegerv(GL_NUM_EXTENSIONS, &n); diff --git a/src/PV3DViewer/CMakeLists.txt b/src/PV3DViewer/CMakeLists.txt index a4689a4f7..fa5a0e0cf 100644 --- a/src/PV3DViewer/CMakeLists.txt +++ b/src/PV3DViewer/CMakeLists.txt @@ -38,7 +38,6 @@ SET(_link_LIBRARIES ${KERNEL_SALOMELocalTrace} ${KERNEL_OpUtil} suit - PV3DViewer PVViewer PVServerService ParaView::pqApplicationComponents diff --git a/src/PVViewer/PVViewer_Core.cxx b/src/PVViewer/PVViewer_Core.cxx index c2efa7bef..30af3760b 100644 --- a/src/PVViewer/PVViewer_Core.cxx +++ b/src/PVViewer/PVViewer_Core.cxx @@ -35,7 +35,7 @@ #include -#include +//#include #include #include #include @@ -44,6 +44,8 @@ #include #include +#include +#include //---------- Static init ----------------- pqPVApplicationCore* PVViewer_Core::MyCoreApp = nullptr; bool PVViewer_Core::MyPqTabWidSingletonLoaded = false; @@ -94,15 +96,16 @@ bool PVViewer_Core::ParaViewInitAppCore() } // MyCoreApp = new pqPVApplicationCore (argc, argv); - for (int i = 0; i < argc; i++) - free(argv[i]); - delete[] argv; - if (MyCoreApp->getOptions()->GetHelpSelected() || - MyCoreApp->getOptions()->GetUnknownArgument() || - MyCoreApp->getOptions()->GetErrorMessage() || - MyCoreApp->getOptions()->GetTellVersion()) { - return false; - } + // for (int i = 0; i < argc; i++) + // free(argv[i]); + // delete[] argv; + // vtkPVOptions* options = vtkProcessModule::GetProcessModule()->GetOptions(); + // if (options->GetHelpSelected() || + // options->GetUnknownArgument() || + // options->GetErrorMessage() || + // options->GetTellVersion()) { + // return false; + // } } return true; } diff --git a/src/Plot2d/Plot2d_Curve.cxx b/src/Plot2d/Plot2d_Curve.cxx index a7d30a81e..27a89dab7 100644 --- a/src/Plot2d/Plot2d_Curve.cxx +++ b/src/Plot2d/Plot2d_Curve.cxx @@ -160,7 +160,8 @@ void Plot2d_Curve::updatePlotItem( QwtPlotItem* theItem ) aCurve->clearDeviationData(); } } else { - aCurve->setSamples( NULL, NULL, 0 ); + aCurve->setSamples(static_cast(nullptr), + static_cast(nullptr), 0); } } diff --git a/src/Plot2d/Plot2d_Histogram.cxx b/src/Plot2d/Plot2d_Histogram.cxx index 22b2d79c9..04f4ea828 100644 --- a/src/Plot2d/Plot2d_Histogram.cxx +++ b/src/Plot2d/Plot2d_Histogram.cxx @@ -27,6 +27,13 @@ #include + +#if QWT_VERSION >= 0x060200 + #include + + template using QwtArray = QVector; +#endif + const int MAX_ATTEMPTS = 10; // max attempts /*! diff --git a/src/Plot2d/Plot2d_PlotItems.cxx b/src/Plot2d/Plot2d_PlotItems.cxx index 8614e9cd0..bc324fc30 100644 --- a/src/Plot2d/Plot2d_PlotItems.cxx +++ b/src/Plot2d/Plot2d_PlotItems.cxx @@ -41,6 +41,12 @@ #include #include #include +#include + + +#if QWT_VERSION >= 0x060200 +#define qwtMin qMin +#endif const int SPACING = 10; const int SYMBOL_SIZE = 13; diff --git a/src/Plot2d/Plot2d_PlotItems.h b/src/Plot2d/Plot2d_PlotItems.h index 42eedfeef..02b6ee7f9 100644 --- a/src/Plot2d/Plot2d_PlotItems.h +++ b/src/Plot2d/Plot2d_PlotItems.h @@ -33,7 +33,14 @@ #include #include #include -#include +#include +#if defined(QWT_VERSION) && (QWT_VERSION < 0x060200) + #include +#endif + +#if QWT_VERSION >= 0x060200 +typedef QRectF QwtDoubleRect; +#endif class PLOT2D_EXPORT Plot2d_QwtLegendLabel : public QwtLegendLabel { diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index fab72be34..725e58775 100644 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -63,6 +63,8 @@ #include #include #include +#include +#include #include #include @@ -77,6 +79,13 @@ #include #include #include +#include + + + +#if QWT_VERSION >= 0x060200 + typedef QList QwtValueList; +#endif #include #include @@ -2862,10 +2871,16 @@ void Plot2d_ViewFrame::setCurveType( QwtPlotCurve* curve, int /*curveType*/ ) } else if ( myCurveType == 2 ) { curve->setStyle( QwtPlotCurve::Lines ); - QwtSplineCurveFitter* fitter = new QwtSplineCurveFitter(); - fitter->setSplineSize( 250 ); - curve->setCurveAttribute( QwtPlotCurve::Fitted, true ); - curve->setCurveFitter( fitter ); + #if QWT_VERSION < 0x060200 + QwtSplineCurveFitter* fitter = new QwtSplineCurveFitter(); + fitter->setSplineSize(250); + curve->setCurveAttribute( QwtPlotCurve::Fitted, true ); + curve->setCurveFitter(fitter); + #else + // Qwt >= 6.2: class removed, use built-in fitting flag + curve->setCurveAttribute(QwtPlotCurve::Fitted, true); + #endif + } } diff --git a/src/Plot2d/Plot2d_ViewFrame.h b/src/Plot2d/Plot2d_ViewFrame.h index abc2d93ee..366ff36a0 100644 --- a/src/Plot2d/Plot2d_ViewFrame.h +++ b/src/Plot2d/Plot2d_ViewFrame.h @@ -42,6 +42,8 @@ #include #include + + #include #include diff --git a/src/SALOME_PYQT/SALOME_PYQT_GUILight/CMakeLists.txt b/src/SALOME_PYQT/SALOME_PYQT_GUILight/CMakeLists.txt index 04257f41d..fb864aaa4 100644 --- a/src/SALOME_PYQT/SALOME_PYQT_GUILight/CMakeLists.txt +++ b/src/SALOME_PYQT/SALOME_PYQT_GUILight/CMakeLists.txt @@ -116,6 +116,12 @@ SET(SalomePyQtGUILight_SOURCES ${_other_SOURCES} ${_moc_SOURCES} ${_sip_SOURCES} ADD_LIBRARY(SalomePyQtGUILight ${SalomePyQtGUILight_SOURCES}) TARGET_LINK_LIBRARIES(SalomePyQtGUILight ${_link_LIBRARIES}) +target_include_directories(SalomePyQtGUILight + PRIVATE + ${CMAKE_CURRENT_BINARY_DIR}/_sip_SOURCES_sipbuild + ${CMAKE_CURRENT_BINARY_DIR}/_sip_SOURCES_sipbuild/SalomePyQtGUILight +) + INSTALL(TARGETS SalomePyQtGUILight DESTINATION ${SALOME_INSTALL_LIBS}) INSTALL(FILES ${SalomePyQtGUILight_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS}) diff --git a/src/SALOME_PYQT/SalomePyQt/CMakeLists.txt b/src/SALOME_PYQT/SalomePyQt/CMakeLists.txt index 30dd5b839..d2a906633 100644 --- a/src/SALOME_PYQT/SalomePyQt/CMakeLists.txt +++ b/src/SALOME_PYQT/SalomePyQt/CMakeLists.txt @@ -122,6 +122,13 @@ SET(SalomePyQt_SOURCES ${_other_SOURCES} ${_moc_SOURCES} ${_sip_SOURCES}) # --- rules --- +add_definitions(-Dprotected=public -DSIP_PROTECTED_IS_PUBLIC) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Dprotected=public -DSIP_PROTECTED_IS_PUBLIC") + +INCLUDE_DIRECTORIES( + ${CMAKE_CURRENT_BINARY_DIR}/_sip_SOURCES_sipbuild +) + ADD_LIBRARY(SalomePyQt MODULE ${SalomePyQt_SOURCES}) TARGET_LINK_LIBRARIES(SalomePyQt ${_link_LIBRARIES}) INSTALL(TARGETS SalomePyQt DESTINATION ${SALOME_INSTALL_LIBS}) diff --git a/src/VTKViewer/VTKViewer_GeometryFilter.cxx b/src/VTKViewer/VTKViewer_GeometryFilter.cxx index 327c12772..11763d4e7 100644 --- a/src/VTKViewer/VTKViewer_GeometryFilter.cxx +++ b/src/VTKViewer/VTKViewer_GeometryFilter.cxx @@ -129,11 +129,20 @@ VTKViewer_GeometryFilter static inline bool toShowEdge( vtkIdType id1, vtkIdType id2, vtkIdType cellId, vtkUnstructuredGrid* input ) { // return true if the given cell is the 1st among cells including the edge + #if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9,0,0) + vtkStaticCellLinks * links = static_cast(input->GetLinks()); + if ( !links ) { + input->BuildLinks(); + links = static_cast(input->GetLinks()); + } + #else vtkStaticCellLinks * links = static_cast(input->GetCellLinks()); if ( !links ) { input->BuildLinks(); links = static_cast(input->GetCellLinks()); } + #endif + if ( id1 < id2 ) std::swap( id1, id2 ); vtkIdType *cells = links->GetCells( id1 ); @@ -463,8 +472,13 @@ ::UnstructuredGridExecute(vtkDataSet *dataSetInput, }//for all cells }//if not all visible + #if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9,0,0) + if ( input->GetLinks() ) + input->BuildLinks(); + #else if ( input->GetCellLinks() ) input->BuildLinks(); + #endif // Loop over all cells now that visibility is known // (Have to compute visibility first for 3D cell boundaries) @@ -1324,11 +1338,16 @@ ::UnstructuredGridExecute(vtkDataSet *dataSetInput, { delete [] cellVis; } - + #if VTK_VERSION_NUMBER >= VTK_VERSION_CHECK(9,0,0) + if ( input->GetLinks() ){ + input->GetLinks()->Initialize(); + } + #else if ( input->GetCellLinks() ) { input->GetCellLinks()->Initialize(); // free memory } + #endif // fill myVTK2ObjIds vector in ascending cell dimension order myVTK2ObjIds.clear(); diff --git a/src/VTKViewer/VTKViewer_OpenGLHelper.cxx b/src/VTKViewer/VTKViewer_OpenGLHelper.cxx index 1707b72af..0b50b85d1 100644 --- a/src/VTKViewer/VTKViewer_OpenGLHelper.cxx +++ b/src/VTKViewer/VTKViewer_OpenGLHelper.cxx @@ -24,22 +24,30 @@ #include "VTKViewer_OpenGLHelper.h" #include + #ifndef WIN32 # ifndef GLX_GLXEXT_LEGACY # define GLX_GLXEXT_LEGACY # endif -# include +#ifdef __APPLE__ + #include +#else + #include +#endif # include #else # include #endif + + #ifndef WIN32 #define GL_GetProcAddress( x ) glXGetProcAddressARB( (const GLubyte*)x ) #else #define GL_GetProcAddress( x ) wglGetProcAddress( (const LPCSTR)x ) #endif + // ============================================================================ // function : VTKViewer_OpenGLHelper // purpose : @@ -97,7 +105,7 @@ void VTKViewer_OpenGLHelper::Init() { if (mIsInitialized) return; - +#if !defined(__APPLE__) // GL function exposed directly vglShaderSourceARB = (PFNGLSHADERSOURCEARBPROC)GL_GetProcAddress( "glShaderSourceARB" ); if( !vglShaderSourceARB ) return; @@ -158,6 +166,7 @@ void VTKViewer_OpenGLHelper::Init() if(!vglDisableVertexAttribArrayARB) return; + #ifdef VTK_OPENGL2 vglDetachObjectARB = (PFNGLDETACHOBJECTARBPROC)GL_GetProcAddress( "glDetachObjectARB" ); if( !vglDetachObjectARB ) @@ -210,6 +219,7 @@ void VTKViewer_OpenGLHelper::Init() vglUniform1iARB = (PFNGLUNIFORM1IARBPROC)GL_GetProcAddress( "glUniform1i" ); if( !vglUniform1iARB ) return; +#endif #endif mIsInitialized = true; @@ -280,13 +290,13 @@ bool VTKViewer_OpenGLHelper::CreateShaderProgram (const std::string& theFilePath free( shaderContent ); - vglGetShaderivARB (theVertexShader, GL_COMPILE_STATUS, &compileStatus); + vglGetShaderivARB (GLcast(theVertexShader), GL_COMPILE_STATUS, &compileStatus); if (compileStatus != GL_TRUE) { GLint size; GLcharARB info[1024]; - vglGetShaderInfoLogARB (theVertexShader, 1024, &size, info); + vglGetShaderInfoLogARB (GLcast(theVertexShader), 1024, &size, info); std::cerr << "Can't compile vertex shader." << std::endl; std::cerr << info << std::endl; @@ -304,13 +314,13 @@ bool VTKViewer_OpenGLHelper::CreateShaderProgram (const std::string& theFilePath free (shaderContent); - vglGetShaderivARB (theFragmentShader, GL_COMPILE_STATUS, &compileStatus); + vglGetShaderivARB (GLcast(theFragmentShader), GL_COMPILE_STATUS, &compileStatus); if (compileStatus != GL_TRUE) { GLint size; GLcharARB info[1024]; - vglGetShaderInfoLogARB (theVertexShader, 1024, &size, info); + vglGetShaderInfoLogARB (GLcast(theVertexShader), 1024, &size, info); std::cerr << "Can't compile fragment shader." << std::endl; std::cerr << info << std::endl; return false; @@ -321,7 +331,7 @@ bool VTKViewer_OpenGLHelper::CreateShaderProgram (const std::string& theFilePath vglAttachObjectARB (theProgram, theFragmentShader); vglLinkProgramARB (theProgram); - vglGetProgramivARB (theProgram, GL_LINK_STATUS, &linked); + vglGetProgramivARB (GLcast(theProgram), GL_LINK_STATUS, &linked); if (!linked) { std::cerr << "Can't link program." << std::endl; @@ -329,7 +339,7 @@ bool VTKViewer_OpenGLHelper::CreateShaderProgram (const std::string& theFilePath } vglValidateProgramARB (theProgram); - vglGetProgramivARB (theProgram, GL_VALIDATE_STATUS, &validateStatus); + vglGetProgramivARB (GLcast(theProgram), GL_VALIDATE_STATUS, &validateStatus); if (validateStatus != GL_TRUE) { diff --git a/src/VTKViewer/VTKViewer_OpenGLHelper.h b/src/VTKViewer/VTKViewer_OpenGLHelper.h index 3b0f13c3e..77e8a4437 100644 --- a/src/VTKViewer/VTKViewer_OpenGLHelper.h +++ b/src/VTKViewer/VTKViewer_OpenGLHelper.h @@ -28,8 +28,14 @@ #include #endif -#include - +#ifdef __APPLE__ + #include + #define GLcast(X) (GLuint)(uintptr_t)X + #define GLcastInv(X) (GLhandleARB)(uintptr_t)X +#else + #include + #define GLcast(X) X +#endif #ifndef GL_ARB_shader_objects typedef GLuint GLhandleARB; diff --git a/src/VTKViewer/VTKViewer_OpenGLRenderer.cxx b/src/VTKViewer/VTKViewer_OpenGLRenderer.cxx index a28d4a0a5..c3806717a 100644 --- a/src/VTKViewer/VTKViewer_OpenGLRenderer.cxx +++ b/src/VTKViewer/VTKViewer_OpenGLRenderer.cxx @@ -22,7 +22,11 @@ // to compile, otherwise we get: // #error gl.h included before glew.h +#if defined(__APPLE__) +#include +#else #include +#endif #include "VTKViewer_OpenGLRenderer.h" #include "VTKViewer_Texture.h" @@ -42,7 +46,9 @@ #include #include #include +#if !defined(__APPLE__) #include +#endif #include #include diff --git a/src/VTKViewer/VTKViewer_PolyDataMapper.cxx b/src/VTKViewer/VTKViewer_PolyDataMapper.cxx index cc38cc7b9..34d7169e5 100644 --- a/src/VTKViewer/VTKViewer_PolyDataMapper.cxx +++ b/src/VTKViewer/VTKViewer_PolyDataMapper.cxx @@ -180,7 +180,7 @@ int VTKViewer_PolyDataMapper::InitShader() this->myLocations.GeneralPointSize = this->OpenGLHelper.vglGetUniformLocationARB( this->PointProgram, "uGeneralPointSize" ); this->myLocations.PointSprite = this->OpenGLHelper.vglGetUniformLocationARB( this->PointProgram, "uPointSprite" ); - this->OpenGLHelper.vglUseProgramObjectARB( current_program ); + this->OpenGLHelper.vglUseProgramObjectARB( GLcastInv(current_program) ); this->OpenGLHelper.vglGenVertexArraysARB(1, &this->VertexArrayObject); #else @@ -620,7 +620,7 @@ void VTKViewer_PolyDataMapper::RenderPiece( vtkRenderer* ren, vtkActor* act ) // this->RenderEdges(ren,act); //this->RenderPieceFinish(ren, act); #endif - this->OpenGLHelper.vglUseProgramObjectARB( current_program ); + this->OpenGLHelper.vglUseProgramObjectARB( GLcastInv(current_program) ); this->CleanupPointSprites(); glBindTexture( GL_TEXTURE_2D, 0 ); } @@ -1000,7 +1000,7 @@ void VTKViewer_PolyDataMapper::InternalDraw(vtkRenderer* ren, vtkActor* act ) { this->OpenGLHelper.vglDeleteBuffersARB( 1, &aBufferObjectID ); this->OpenGLHelper.vglBindVertexArrayARB( 0 ); - this->OpenGLHelper.vglUseProgramObjectARB( current_program ); + this->OpenGLHelper.vglUseProgramObjectARB( GLcastInv(current_program) ); #else GLuint aBufferObjectID, aDiamsID = 0; GLint attribute_diams = -1; diff --git a/src/VTKViewer/VTKViewer_Texture.cxx b/src/VTKViewer/VTKViewer_Texture.cxx index 11c183b3b..17b57b8e5 100644 --- a/src/VTKViewer/VTKViewer_Texture.cxx +++ b/src/VTKViewer/VTKViewer_Texture.cxx @@ -38,7 +38,9 @@ #include "vtkOpenGLRenderWindow.h" #include "vtkTransform.h" #include "vtkPixelBufferObject.h" +#if !defined(__APPLE__) #include "vtk_glew.h" +#endif #include vtkStandardNewMacro(VTKViewer_Texture) diff --git a/tools/PyConsole/src/python/CMakeLists.txt b/tools/PyConsole/src/python/CMakeLists.txt index 6de2912f2..f2b34bd95 100644 --- a/tools/PyConsole/src/python/CMakeLists.txt +++ b/tools/PyConsole/src/python/CMakeLists.txt @@ -26,7 +26,8 @@ INCLUDE(UsePyQt) # additional include directories INCLUDE_DIRECTORIES( - $(QT_INCLUDES) + ${QT_INCLUDES} + ${QWT_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS} ${SIP_INCLUDE_DIR} ${PROJECT_BINARY_DIR} @@ -50,13 +51,20 @@ PYQT_WRAP_SIP(_sip_SOURCES ${_sip_files}) # sources / to compile SET(PyConsolePy_SOURCES ${_sip_SOURCES}) -# --- rules --- -ADD_LIBRARY(PyConsolePy ${PyConsolePy_SOURCES}) +add_definitions(-Dprotected=public -DSIP_PROTECTED_IS_PUBLIC) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Dprotected=public -DSIP_PROTECTED_IS_PUBLIC") + +INCLUDE_DIRECTORIES( + ${CMAKE_CURRENT_BINARY_DIR}/_sip_SOURCES_sipbuild +) + +# --- rules --- +ADD_LIBRARY(PyConsolePy MODULE ${PyConsolePy_SOURCES}) IF(WIN32) SET_TARGET_PROPERTIES(PyConsolePy PROPERTIES SUFFIX ".pyd" DEBUG_OUTPUT_NAME PyConsolePy_d RELEASE_OUTPUT_NAME PyConsolePy) ELSE() - SET_TARGET_PROPERTIES(PyConsolePy PROPERTIES PREFIX "") + SET_TARGET_PROPERTIES(PyConsolePy PROPERTIES PREFIX "") ENDIF() TARGET_LINK_LIBRARIES(PyConsolePy ${_link_LIBRARIES}) INSTALL(TARGETS PyConsolePy EXPORT ${PYCONSOLE_EXPORT_NAME}TargetGroup DESTINATION ${PYCONSOLE_INSTALL_PYTHON}) diff --git a/tools/PyEditor/src/python/CMakeLists.txt b/tools/PyEditor/src/python/CMakeLists.txt index 49164fccf..6692d4b7f 100644 --- a/tools/PyEditor/src/python/CMakeLists.txt +++ b/tools/PyEditor/src/python/CMakeLists.txt @@ -26,7 +26,7 @@ INCLUDE(UsePyQt) # additional include directories INCLUDE_DIRECTORIES( - $(QT_INCLUDES) + ${QT_INCLUDES} ${PYTHON_INCLUDE_DIRS} ${SIP_INCLUDE_DIR} ${PROJECT_BINARY_DIR} @@ -46,13 +46,21 @@ SET(_sip_files PyEditorPy.sip) # sources / sip wrappings PYQT_WRAP_SIP(_sip_SOURCES ${_sip_files}) - +message(STATUS "[SIP output] ${_sip_SOURCES}") # sources / to compile SET(PyEditorPy_SOURCES ${_sip_SOURCES}) # --- rules --- -ADD_LIBRARY(PyEditorPy ${PyEditorPy_SOURCES}) + +add_definitions(-Dprotected=public -DSIP_PROTECTED_IS_PUBLIC) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Dprotected=public -DSIP_PROTECTED_IS_PUBLIC") + +INCLUDE_DIRECTORIES( + ${CMAKE_CURRENT_BINARY_DIR}/_sip_SOURCES_sipbuild +) + +ADD_LIBRARY(PyEditorPy MODULE ${PyEditorPy_SOURCES}) IF(WIN32) SET_TARGET_PROPERTIES(PyEditorPy PROPERTIES SUFFIX ".pyd" DEBUG_OUTPUT_NAME PyEditorPy_d RELEASE_OUTPUT_NAME PyEditorPy) ELSE()