Fwd: [CMake] MSVC project names

Michal Čihař michal at cihar.com
Fri Aug 3 04:33:09 EDT 2007


Hi

On Fri, 3 Aug 2007 10:25:59 +0200
"Eric Noulard" <eric.noulard at gmail.com> wrote:

> Another Forget cc CMake-ML...
> 
> Complement: When using other CMake macro you should use
> the primary name e.g:
> 
> TARGET_LINK_LIBRARY(gammu-exe Gammu-Lib)

I found this myself meanwhile ;-).

> You should (for example):
> 
> add_library(Gammu-Lib ...)
> then
> set_target_properties(Gammu-Lib PROPERTIES OUTPUT_NAME Gammu)
> 
> and/or
> add_executable(gammu-exe ...)
> set_target_properties(gammu-exe PROPERTIES OUTPUT_NAME gammu)

Thanks a lot, that seems to be the thing I overlooked in docs! Or
better - didn't realize how to use it.

-- 
	Michal Čihař | http://cihar.com | http://blog.cihar.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20070803/0e826334/signature.pgp


More information about the CMake mailing list