1 2 3 4 5
add_library(hello_c SHARED hello.c) set_target_properties(hello_c PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} )