[CMake] make install not works for me

Filipe Sousa filipe at ipb.pt
Thu Sep 7 04:48:49 EDT 2006


Slava Semushin wrote:
> --- Filipe Sousa 2006-09-07 09:17:00 +0100
> +++ Slava Semushin 2006-09-07 15:31:28 +0700
> 
> FS> I can't tell you what you have to fix without your CMakeLists.txt
> 
>     Wow. I'm very sorry. I forgot attach CMakeLists.txt :-(
> 
> 
> --- Brandon J. Van Every 2006-09-07 01:20:55 -0700
> +++ Slava Semushin 2006-09-07 15:31:28 +0700
> 
> BJVE> Um, you didn't send us this, so how could we tell you?
> 
>     Not needed now. My friend point me to INSTALL, I read man and added one
>     line:
> 
>     INSTALL (TARGETS openfm RUNTIME DESTINATION bin)
> 
>     Now all works as expected. I think anybody should update
>     http://www.cmake.org/HTML/Examples.html and adds INSTALL directives to
>     example. Without this change some newbies, like me, may puzzle.

fsousa at neptuno ~ $ cmake --help-command install
...
 The TARGETS signature:

         INSTALL(TARGETS targets...
                 [[ARCHIVE|LIBRARY|RUNTIME]
                  [DESTINATION <dir>]
                  [PERMISSIONS permissions...]
                  [CONFIGURATIONS [Debug|Release|...]]
                  [COMPONENT <component>]
                 ] [...])
...
INSTALL(TARGETS myExe mySharedLib myStaticLib
                   RUNTIME DESTINATION bin
                   LIBRARY DESTINATION lib
                   ARCHIVE DESTINATION lib/static)
...
-- 
Filipe Sousa

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20060907/5776e947/signature.pgp


More information about the CMake mailing list