[CMake] Help with INSTALL(TARGETS

Alexander Neundorf a.neundorf-work at gmx.net
Mon Jun 9 14:37:46 EDT 2008


On Monday 09 June 2008, Michael Salt wrote:
> Hello All,
>
...
> There are two other directories, gmadParser and CUDA, each containing
> an add_libraries() command.
>
> When I generate a Visual Studio 9 project, I get the following error
> message...
> "CMake Error at CMakeLists.txt:9 (INSTALL):
>    install TARGETS given target "coreGPU" which does not exist in this
> directory."
>
> I do not yet understand enough to determine what is wrong here. Any
> input is greatly appreciated.

Without actually checking...
I would suggest to put the INSTALL(TARGETS ...) commands in the CMakeLists.txt 
where the actual targets are created. That's also what the error message 
says. It should work then.

Alex


More information about the CMake mailing list