Templates for frameworks CMake files

Aurélien Gâteau agateau at kde.org
Fri Sep 13 09:30:32 UTC 2013


Hi,

I have been playing around with itemviews CMake files and put together some 
templates for the top level CMakeLists.txt and *Config.cmake.in. You can find 
them attached there. Any one against me adding those to the repository?

Aurélien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeLists.txt
Type: text/x-cmake
Size: 1888 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20130913/954575fe/attachment-0001.bin>
-------------- next part --------------
@PACKAGE_INIT@

# Required components to use this framework
# For example:
# find_dependency(Qt5Widgets @REQUIRED_QT_VERSION@)
# find_dependency(KCoreAddons ${PACKAGE_VERSION})

set(FooBar_INSTALL_PREFIX "@PACKAGE_CMAKE_INSTALL_PREFIX@")
set_and_check(FooBar_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")

include("${CMAKE_CURRENT_LIST_DIR}/FooBarTargets.cmake")

set(FooBar_LIBRARIES KF5::FooBar)
set(FooBar_INCLUDE_DIRS ${FooBar_INCLUDE_DIR} )


More information about the Kde-frameworks-devel mailing list