[CMake] Multiple install section from the same base folder
Laszlo Papp
lpapp at kde.org
Tue Jul 12 02:11:25 EDT 2011
Hi,
On Tue, Jul 12, 2011 at 9:03 AM, Andreas Naumann
<Andreas-Naumann at gmx.net> wrote:
> You could use
> file(GLOB_RECURSE files *.h)
The problem is a bit slightly different. It is not a problem for me to
find the files on my own. :) The problem is that I would like to
install "foo/bar.h" into the destination as "foo/bar.h" and not just
"bar.h". I guess that would cover the issues. Even if I ever need some
recursive search, it will hold the files without the subfolder, so
they will be installed into the destination as "bar.h" and not
"foo/bar.h". Did I miss something ?
> or install the main directory with
> install(DIRECTORY ... )
> and exclude every non-header file (and possibly svn..)
We have source, header, data, icon, et cetera files inside the given
library folder, so this would cause more issues than benefit in our
case.
Best Regards,
Laszlo Papp
More information about the CMake
mailing list