telepathy-qt: Add the telepathy-qt include directories to the telepathy-qt target

David Edmundson davidedmundson at kemper.freedesktop.org
Wed Nov 12 09:04:13 PST 2014


Module: telepathy-qt
Branch: master
Commit: 31c8f4170f58a21baebce226918e6ed52a46dd0b
URL:    http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=31c8f4170f58a21baebce226918e6ed52a46dd0b

Author: Aleix Pol <aleixpol at kde.org>
Date:   Thu Oct 30 17:23:14 2014 +0100

Add the telepathy-qt include directories to the telepathy-qt target

Whoever wants to link against telepathy-qt will need to be able to
include it, so do it right away.

Reviewed by: David Edmundson

---

 TelepathyQt/CMakeLists.txt |    1 +
 1 file changed, 1 insertion(+)

diff --git a/TelepathyQt/CMakeLists.txt b/TelepathyQt/CMakeLists.txt
index 8e41f86..000c63b 100644
--- a/TelepathyQt/CMakeLists.txt
+++ b/TelepathyQt/CMakeLists.txt
@@ -773,6 +773,7 @@ target_link_libraries(telepathy-qt${QT_VERSION_MAJOR}
     ${QT_QTNETWORK_LIBRARY}
     ${QT_QTXML_LIBRARY}
     ${TP_QT_LIBRARY_LINKER_FLAGS})
+target_include_directories(telepathy-qt${QT_VERSION_MAJOR} PUBLIC "$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}/telepathy-qt${QT_VERSION_MAJOR}/>")
 
 # Link - Library used by tests to test some unexported functionality
 target_link_libraries(telepathy-qt-test-backdoors



More information about the telepathy-commits mailing list