I install HPCombi separately, with
cmake -DCMAKE_INSTALL_PREFIX=/foo/bar && make && make install,
and it does not put anything into $prefix/lib/cmake/ - which is the location needed by cmake to do package discovery.
It also doesn't install hpcombi.pc, even though you have the template hpcombi.pc.in - and this prevents pkg-config usage for version discovery, too.
You do copy VERSION into $prefix/ - but this is making no sense; note that $prefix, i..e. what you specify with -DCMAKE_INSTALL_PREFIX=... is typically something like /usr/local placing a file named VERSION right there makes no sense.
I install HPCombi separately, with
cmake -DCMAKE_INSTALL_PREFIX=/foo/bar && make && make install
, and it does not put anything into$prefix/lib/cmake/
- which is the location needed bycmake
to do package discovery. It also doesn't installhpcombi.pc
, even though you have the templatehpcombi.pc.in
- and this preventspkg-config
usage for version discovery, too.You do copy
VERSION
into$prefix/
- but this is making no sense; note that$prefix
, i..e. what you specify with-DCMAKE_INSTALL_PREFIX=...
is typically something like/usr/local
placing a file namedVERSION
right there makes no sense.