CMAKE: Workaround for python

This commit is contained in:
Matthias Jung
2020-02-26 00:00:05 +01:00
parent f4a0e9fded
commit d96e8c316a
2 changed files with 12 additions and 0 deletions

View File

@@ -38,6 +38,12 @@
#ifndef PYTHONCALLER_H
#define PYTHONCALLER_H
// Workaround for CMAKE and Python
#ifdef slots
#undef slots
#endif
#include <Python.h>
#include <QString>
#include <string>

View File

@@ -41,7 +41,13 @@
#define EVALUATIONTOOL_H
#include "selectmetrics.h"
// Workaround for CMAKE and Python
#ifdef slots
#undef slots
#endif
#include <Python.h>
#include <QWidget>
#include <QStandardItem>
#include <QStandardItemModel>