cmake <cmake flags> build # configure
cd build
make
cd ..
make install PREFIX=...
since install.sh or the top-level Makefile is not flexible enough for us.
Would it be possible to add install target to CMakeLists.txt? Then we could use the CMake-generated Makefile for both building and installation.
There would be an added benefit that it would concentrate all build and installation instructions in CMakeLists.txt and the top-level Makefile could just redirect the install target to the build/ directory like it already does with build.
Currently we are building this as
since
install.sh
or the top-level Makefile is not flexible enough for us.Would it be possible to add
install
target toCMakeLists.txt
? Then we could use the CMake-generatedMakefile
for both building and installation.There would be an added benefit that it would concentrate all build and installation instructions in
CMakeLists.txt
and the top-levelMakefile
could just redirect theinstall
target to thebuild/
directory like it already does with build.