Kill use of private header.
This commit is contained in:
parent
68ef30d3af
commit
fac0341e04
2 changed files with 1 additions and 12 deletions
|
@ -144,19 +144,10 @@ if (HAVE_QT)
|
|||
${uic_sources}
|
||||
${qrc_sources})
|
||||
|
||||
#HACK: CMake with broken Qt5Qml_PRIVATE_INCLUDE_DIRS
|
||||
# This is needed for Qt 5.2, possibly 5.3. Can be removed if we raise
|
||||
# the minimum version higher.
|
||||
if(NOT "${Qt5Qml_PRIVATE_INCLUDE_DIRS}" MATCHES "/QtQml/")
|
||||
list(APPEND Qt5Qml_PRIVATE_INCLUDE_DIRS "${_qt5Core_install_prefix}/include/QtCore/${Qt5Core_VERSION}/QtCore")
|
||||
list(APPEND Qt5Qml_PRIVATE_INCLUDE_DIRS "${_qt5Qml_install_prefix}/include/QtQml/${Qt5Core_VERSION}/QtQml")
|
||||
list(REMOVE_DUPLICATES Qt5Qml_PRIVATE_INCLUDE_DIRS)
|
||||
endif()
|
||||
|
||||
set_property(TARGET fglauncher PROPERTY AUTOMOC ON)
|
||||
target_link_libraries(fglauncher Qt5::Core Qt5::Widgets Qt5::Network Qt5::Qml SimGearCore)
|
||||
target_include_directories(fglauncher PRIVATE ${PROJECT_BINARY_DIR}/src/GUI)
|
||||
target_include_directories(fglauncher PRIVATE ${Qt5Qml_PRIVATE_INCLUDE_DIRS})
|
||||
#target_include_directories(fglauncher PRIVATE ${Qt5Qml_PRIVATE_INCLUDE_DIRS})
|
||||
|
||||
|
||||
endif()
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
#include <QQmlComponent>
|
||||
#include <QQmlContext>
|
||||
|
||||
#include <private/qqmlglobal_p.h>
|
||||
|
||||
// simgear headers
|
||||
#include <simgear/package/Install.hxx>
|
||||
|
||||
|
|
Loading…
Reference in a new issue