[CMake] CPack question.
Eric Noulard
eric.noulard at gmail.com
Mon Sep 12 02:11:22 EDT 2011
2011/9/12 Akshay <akshay.ranjan at gmail.com>:
> Hello All,
>
> I have recently ported my project software tree to CMake and I am pretty
> happy about it. There is a last step which is proving quite elusive to me.
> The targets that are built in the software tree are TGZ'd for final
> distribution, however, CPack if run from the CMakeLists.txt file will pickup
> only those targets which are installed by INSTALL command.
This is the expected behavior CPack uses "install".
> I can't change the directory structure for historical reasons. If I use INSTALL from the
> individual directories' CMakeLists.txt, CPack from the main CMakeLists.txt
> is not finding anything and generates an empty TGZ.
How does "make install" behave?
Which version of CMake/CPack are you using?
On which platform?
> src
> |- a
> |- b
> |- c
> |- dt
> |- proj
> |- CMakeLists.txt (main)
> |- build
> |- e
> |- x
> |- y
> |- z
This means that you main CMakeLists.txt is in a sibling directory
of others source dir and not has a parent, right?
Would you be able to create a small project which exhibits the same issue?
In particular how do you call CMake in your case?
cd proj/build
cmake ../proj
if so, how do you recurse to other source dirs?
Does your CMakeLists.txt includes something like
add_subdirectory(../a) ?
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
More information about the CMake
mailing list