1 2 3 4 5 6 7 8 9
enable_language(C) add_library(foo SHARED foo.c) set_target_properties(foo PROPERTIES VERSION 1.0 SOVERSION 1 MACHO_COMPATIBILITY_VERSION 2.1.0 MACHO_CURRENT_VERSION 3.2.1 )