~ps-jenkins/libdbusmenu-qt/utopic-proposed

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: CI bot
  • Author(s): Aurélien Gâteau
  • Date: 2014-06-19 09:07:07 UTC
  • mfrom: (264.2.1 define-include-dir)
  • Revision ID: ps-jenkins@lists.canonical.com-20140619090707-63vtyv8ox9gzjql2
With this change, users of dbusmenu-qt no longer need to call include_directories(${dbusmenu-qt5_INCLUDE_DIRS}). Simply adding dbusmenu-qt5 to the target_link_libraries() call takes care of defining the include directory.

This requires CMake 2.8.11, so I bumped the minimum version numbers accordingly. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
        )
94
94
endif()
95
95
 
 
96
# Make sure linking to the target adds dbusmenu-qt install directory
 
97
target_include_directories(dbusmenu-${QT_SUFFIX}
 
98
    INTERFACE "$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>")
 
99
 
96
100
install(TARGETS dbusmenu-${QT_SUFFIX}
97
101
    EXPORT dbusmenu-${QT_SUFFIX}-targets
98
102
    LIBRARY DESTINATION ${LIB_DESTINATION}