[CMake] INSTALL destination directories

Stephen Collyer scollyer at netspinner.co.uk
Wed Nov 14 15:19:38 EST 2007


This is an INSTALL example copied from the wiki:

INSTALL(TARGETS ExecutableTarget StaticLibraryTarget SharedLibraryTarget
  RUNTIME DESTINATION bin
  LIBRARY DESTINATION lib
  ARCHIVE DESTINATION lib
)

1. I assume that cmake automatically knows (somehow) to associate
ExecutableTarget with the RUNTIME DESTINATION and similarly for
the library targets. Is that right ?

2. I guess the bin and lib directories are relative to something,
but it's not clear to me what that place is. Is it the directory
where the topmost CMakeList.txt file lives ?

-- 
Regards

Steve Collyer
Netspinner Ltd


More information about the CMake mailing list