Set the Qt5DIR in the CMake cache to the location of the Qt5Config.cmake file. However, as of Debian 10 (buster) it's not yet available. For findpackage to be successful, CMake must find the Qt installation in one of the following ways: Set your CMAKEPREFIXPATH environment variable to the Qt 5 installation prefix. In installation mode this is the location where the header files will be installed.
#CMAKE INSTALL PACKAGE GENERATOR#
Note: Kitware (cmake developer) is working on a new debhelper extension dh-cmake which looks like it'll make this even easier. So to sum it up, in order to support installation and findpackage() in CMake you need to: Change the call to targetincludedirectories() so that it uses theI'm happy to accept edits to this answer with a better solution. This solution presumes you are using make, and that the only -P string is going to be in your install commands (which seem to be the case for the projects I've checked so far).
Instead these commands edit the Makefile auto-generated by cmake.
#CMAKE INSTALL PACKAGE SOFTWARE#
I was hoping to do it by passing -DCOMPONENT=app1 to dh_auto_install directory. Step 2 : A new window of Ubuntu software center will be opened and in the search bar type cmake and in the search result there will be option of CMake package. I'm a little disappointed in the sed commands. %:ĭh # -buildsystem=cmake represents / in that binary package.
A standard debhelper debain/rules file might look like this (buildsystem automatically detects cmake in newer compat levels).