[CMake] header files/build orgainization with cmake

Theodore Papadopoulo Theodore.Papadopoulo at inria.fr
Thu Jun 19 05:35:08 EDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/17/2014 02:04 PM, Marcel Loose wrote:
> Hi Majo,
> 
> We have a similar situation. I assume you want to use lib1 in proj2
> at build time, without doing a separate install. The way I solved
> this involves symbolic links, which AFAIK only work on Unix-like
> systems.

I have had the same problem too. My solution is to organize files the
way they would be installed. Thus in your case my include files will
be under the directory

lib1/include/lib1 (in the source dir

This way you can use installed or non installed includes exactly the
same way.

	Hope it helps.

	Theo,
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlOirswACgkQEr8WrU8nPV2UlQCgnXXhTOhgdJDQxvrH6+ZwfS63
ndAAn0xh+jVl/S3w9UDUadnxRg973yt+
=y3/K
-----END PGP SIGNATURE-----


More information about the CMake mailing list