diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qgltf/qgltf.pro | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/qgltf/qgltf.pro b/tools/qgltf/qgltf.pro index 5fcebbae5..41abfcb3f 100644 --- a/tools/qgltf/qgltf.pro +++ b/tools/qgltf/qgltf.pro @@ -1,7 +1,6 @@ option(host_build) -load(qt_tool) -SOURCES = $$PWD/qgltf.cpp +SOURCES = qgltf.cpp config_assimp:!cross_compile { !contains(QT_CONFIG, no-pkg-config) { @@ -11,5 +10,16 @@ config_assimp:!cross_compile { LIBS += -lassimp } } else { + # Fix for using bootstrap module on OSX outside of qtbase + contains(QT_CONFIG, qt_framework) { + # Add framework headers directly to make bootstrap lib work + INCLUDEPATH += $$QT.core.libs/QtCore.framework/Headers + # Extend framework search path to make #include <QtCore/*> work + QMAKE_CXXFLAGS += -F$$QT.core.libs + } + CONFIG += force_bootstrap + include(../../src/3rdparty/assimp/assimp.pri) } + +load(qt_tool) |