Part 7 : Library versionning



Versionning libraries in CMake is not hard but tedious. To handle it nicely you can use :
1
phoenix_add_library(lib_name source.cpp)
It wraps the classic add_library of cmake and uses the project version defined with phoenix_base_project (see in part 2).

Libraries type is coltroled with the PHOENIX_BUILD_TYPE cmake variable :
  • Dynamic : build only dynamic libraries (default value) (.so)
  • DynamicAndStatic : build static and dynamic libraries (.a and .so)
  • StaticOnly : build only static libraries (.a)
Only dynamic libraries are versionned.