[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CMake out-of-tree build systems and packaging: example needed



2013/4/14 Tom Browder <tom.browder@gmail.com>:
> I am trying to get a package in shape for BRL-CAD which currently
> tests only an out-of-tree build.  Can anyone point  to an example of
> such a requirement being implemented in an existing Debian package?
>

Debhelper has options -B for build dir and -S for source dir, for example:
dh_auto_configure -B some/dir -- <options for configure or CMake>

In simple case this should work:

%:
    dh $@ -B some/dir

Here is more complex example (but with autotools):
https://github.com/ip1981/open-axiom-debian/blob/master/debian/rules


Reply to: