[CMake] Help with INSTALL(TARGETS
Michael Salt
Michael.Salt at student.manchester.ac.uk
Tue Jun 10 04:27:36 EDT 2008
Thanks Alex,
The trouble is that at the moment, my targets (.exe, .dll) are built
in a directory within the 'build' folder. Of course, the contents of
the build folder are not generated until I run cmake, so I actually
have nowhere to put the CMakeLists.txt file. I do not want to create
the folders manually because it may just be a Visual Studio specific
feature to create executables within the subdirectories of the build
folder, and I wish to retain portability.
Is it possible that I am doing something awkward that makes this
feature difficult to use?
Cheers,
Mike
Quoting Alexander Neundorf <a.neundorf-work at gmx.net>:
> 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
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
More information about the CMake
mailing list