1 2 3 4 5 6 7
set(SOURCES DynamicLib.cpp ) add_library(DynamicLib SHARED ${SOURCES}) target_link_libraries(DynamicLib LibC) install(TARGETS DynamicLib DESTINATION usr/lib)