Skip to content

CMake example comparing object library and static library.

Notifications You must be signed in to change notification settings

cyfdecyf/cmake-object-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Object library is a very useful feature which is introduced in cmake 2.8.8.

This feature allows us group a bunch of object files and pass them as src to add_library or add_executable.

Benefits:

  • Avoids unnecessary static library creation
  • No need for linking hack for circular static library dependency

Run make VERBOSE=1 to see the actual compile and link commands.

References:

About

CMake example comparing object library and static library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published