My variant of in-tree/installable cmake files. Because we have a pull request on change the cmake files, I make all changes in the separate repository. This is tested only on Qt4. At this moment only libqtxdg, liblxqt and lxqt-about works. In root repository we should to add trivial cmake file, like:

project(lxde-qt)
cmake_minimum_required(VERSION 2.6)

set(INTREE_ROOT_DIR "${CMAKE_BINARY_DIR}/intree/")
set(CMAKE_PREFIX_PATH "${INTREE_ROOT_DIR}/cmake/")

add_subdirectory(libqtxdg)
add_subdirectory(liblxqt)

add_subdirectory(lxqt-about)

The problem with separate libs for Qt4 and Qt5 don't decided yet. But if my solution is well, I will use it as a basis for future improvement of the cmake infrastructure.


2013/10/22 <sokoloff.a@gmail.com>
Anybody can explain for me. If we install public headers to /usr/include/qtxdg/, what should the variable QTXDG_INCLUDE_DIR contain?

Variant 1.
The QTXDG_INCLUDE_DIR is equal "/usr/include". In this case in the code we use "#include <qtxdg/XdgDirs>". The X11 behave so.

Variant 2.
The QTXDG_INCLUDE_DIR is equal "/usr/include/qtxdg". In this case in the code we use "#include <XdgDirs>". The Qt4 behave so.

What is right?

--
Best regards,
Alexander.



--
Best regards,
Alexander.