Bruce Chidester
Bruce Chidester

Reputation: 621

Qt WEBKIT with CMake

When I include QT += webkit in a project file and use qmake, a QWevView example works great and as expected. When attempting to add "set(QT_USE_QTWEBKIT TRUE)" to my CMakeList.txt, I get the issue:

"Qt QTXMLPATTERNS library not found."

I have tried adding set(QT_USE_QTXMLPATTERNS TRUE) to address this, but no change.

Since the qmake version works and the cmake version does not, the module must be available to be loaded.

Any hint on the solution or troubleshooting steps to fix this?

Upvotes: 4

Views: 2310

Answers (2)

user25592572
user25592572

Reputation: 1

Add a reference to the library through:

target_link_libraries()

Do not add:

set(QT_USE_QTWEBKIT TRUE)

Which can interrupt the normal build.

Upvotes: 0

Bruce Chidester
Bruce Chidester

Reputation: 621

I beleieve that my work-around is the only solution for this issue at this point.

Upvotes: 1

Related Questions