Fix: Missing dependencies for ktexeditor autotests

Authored by hgoebel on Nov 5 2017, 8:59 PM.

Description

Fix: Missing dependencies for ktexeditor autotests

Summary:
When building ktexeditor autotests for guix[1], building the following autotests fail:

  • autotests/src/scripting_test.cpp
  • autotests/src/vimode/base.cpp

The reasons are missing dependencies in autotests/CMakeLists.txt resp. autotests/src/vimode/CMakeLists.txt – and related missing dependencies in CMakeLists.txt.

See https://phabricator.kde.org/D8112 (already merged) for the same kind of problem for kwin.

[1] https://www.gnu.org/software/guix/

Detailed description and Analysis
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

guix (like nix) used a separate prefix for each package. Thus the header files for qtdeclarative are in /gnu/store/…-qtdeclarative-5.9.1/include/qt5/ while the ones for qtbase are in /gnu/store/…-base-5.9.1/include/qt5/. This means that *each* dependency's include directory must be specified. This is in contrast to a "normal" Unix-system, where all includes end up in /usr/include/qt5 and missing to define some include-dependencies does often not raise an error.

Reviewers: KTextEditor, dfaure

Reviewed By: dfaure

Subscribers: Frameworks

Tags: Kate, Frameworks

Differential Revision: https://phabricator.kde.org/D8577

Details