Skip to content

Commit

Permalink
Correctly reference PythonQt's include files (#1310).
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrnz committed May 18, 2017
1 parent ad9eaf4 commit ac006f4
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 17 deletions.
Expand Up @@ -25,7 +25,7 @@
All rights reserved.
ParaView is a free software; you can redistribute it and/or modify it
under the terms of the ParaView license version 1.2.
under the terms of the ParaView license version 1.2.
See http://www.paraview.org/paraview/project/license.html for the full ParaView license.
A copy of this license can be obtained by contacting
Expand Down Expand Up @@ -59,8 +59,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <QVBoxLayout>

// PythonQt includes
#include <PythonQt.h>
#include <PythonQtObjectPtr.h>
#include <PythonQt/PythonQt.h>
#include <PythonQt/PythonQtObjectPtr.h>

// CTK includes
#include <ctkConsole.h>
Expand Down
Expand Up @@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

//==============================================================================

#include "PythonQtPythonInclude.h"
#include <PythonQt/PythonQtPythonInclude.h>

//==============================================================================

Expand Down
Expand Up @@ -22,13 +22,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//==============================================================================

#include "datastoreinterface.h"
#include "pythonqtconversion.h"
#include "pythonwrapperdatastore.h"
#include "pythonwrappernumpy.h"
#include "pythonwrapperplugin.h"

//==============================================================================

#include <PythonQt/pythonqtconversion.h>

//==============================================================================

namespace OpenCOR {
namespace PythonWrapper {

Expand Down
Expand Up @@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

//==============================================================================

#include "PythonQtPythonInclude.h"
#include <PythonQt/PythonQtPythonInclude.h>

//==============================================================================

Expand Down
Expand Up @@ -30,7 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

//==============================================================================

#include "PythonQt.h"
#include <PythonQt/PythonQt.h>

//==============================================================================

Expand Down
Expand Up @@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

//==============================================================================

#include "PythonQt.h"
#include <PythonQt/PythonQt.h>

//==============================================================================

Expand Down
Expand Up @@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

//==============================================================================

#include "PythonQtPythonInclude.h"
#include <PythonQt/PythonQtPythonInclude.h>

//==============================================================================

Expand Down
Expand Up @@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

//==============================================================================

#include "PythonQtPythonInclude.h"
#include <PythonQt/PythonQtPythonInclude.h>

//==============================================================================

Expand Down
Expand Up @@ -26,10 +26,10 @@
#include "ctkAbstractPythonManager.h"

// PythonQT includes
#include <PythonQt.h>
#include <PythonQt/PythonQt.h>

#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
#include <PythonQt_QtBindings.h>
#include <PythonQt/PythonQt_QtAll.h>
#endif

// STD includes
Expand Down Expand Up @@ -155,7 +155,7 @@ void ctkAbstractPythonManager::initPythonQt(int flags)
SLOT(printStderr(QString)));

#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
PythonQt_init_QtBindings();
PythonQt_QtAll::init();
#endif

QStringList initCode;
Expand Down
Expand Up @@ -28,7 +28,7 @@
#include <QVariant>

// PythonQt includes
#include <PythonQtPythonInclude.h> // For PyObject
#include <PythonQt/PythonQtPythonInclude.h> // For PyObject

// OpenCOR includes
#include "pythonqtsupportglobal.h"
Expand Down
Expand Up @@ -27,8 +27,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

//==============================================================================

#include <PythonQt.h>
#include <PythonQt_QtAll.h>
#include <PythonQt/PythonQt.h>
#include <PythonQt/PythonQt_QtAll.h>

//==============================================================================

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/thirdParty/PythonQtAPI/CMakeLists.txt
Expand Up @@ -201,7 +201,7 @@ ENDIF()

# Allow other external projects to find our PythonQt package

SET(PYTHONQT_ROOT_DIR ${FULL_INSTALL_DIR} PARENT_SCOPE)
SET(PYTHONQT_ROOT_DIR ${LOCAL_EXTERNAL_PACKAGE_DIR} PARENT_SCOPE)

# Add the plugin

Expand Down

0 comments on commit ac006f4

Please sign in to comment.