[CMake] INSTALL TARGET with no target to compile

Alexander Neundorf a.neundorf-work at gmx.net
Thu Jan 29 15:38:31 EST 2009


On Thursday 29 January 2009, Daniele E. Domenichelli wrote:
> I have a small template library in c++ composed by ".h" files only and I
> want to use cmake to configure, find dependencies and install the
> library (compiling is not needed).
>
> This template library is in a bigger package with some other libraries
> that I install using "INSTALL TARGET" signature.
>
> I know I could use "INSTALL FILES", but I would like to use the same
> syntax ("INSTALL TARGET") for the first library, so I tried creating a
> new target, but with no results... Is there a way to do it?

No. If you just have to install a set of files, use install(FILES).
If you didn't create a target using add_executable() or add_library(), you 
can't use install(TARGETS)
Do you have some specific problem with install(FILES ) ?

Alex


More information about the CMake mailing list