[CMake] ${PROJECT}-config.cmake
Alexander Neundorf
a.neundorf-work at gmx.net
Mon Jun 7 15:28:54 EDT 2010
On Monday 07 June 2010, Biddiscombe, John A. wrote:
> Seems that just doing
>
> IF (NOT ${PROJECTXXX_SOURCE_DIR})
> include config file
> ENDIF
>
> is enough and works ok. If the project is part of the same build, the
> source dir is defined, otherwise not.
You could also put the targets in the export file into a "namespace" (using
the "NAMESPACE" argument of export()), so that when importing the file the
imported target name wouldn't be "vtkhdf5", but e.g. "HDF5::vtkhdf5".
Alex
More information about the CMake
mailing list