最終更新:2019-09-24 (火) 15:58:31 (1638d)
add_library
Top / add_library
https://cmake.org/cmake/help/latest/command/add_library.html
Normal Libraries
add_library(<name> [STATIC | SHARED | MODULE] [EXCLUDE_FROM_ALL] [source1] [source2 ...])
Imported Libraries
- An IMPORTED library target references a library file located outside the project.
add_library(<name> <SHARED|STATIC|MODULE|OBJECT|UNKNOWN> IMPORTED [GLOBAL])
Object Libraries
- Creates an Object Library.
- https://cmake.org/cmake/help/latest/manual/cmake-buildsystem.7.html#object-libraries
- https://gitlab.kitware.com/cmake/community/wikis/doc/tutorials/Object-Library
add_library(<name> OBJECT <src>...)