PROJECT(DDClientLibC) include_directories( ${CMAKE_HOME_DIRECTORY}/src/DDClientLibC/INCLUDE/ ) #Library configuration file( GLOB_RECURSE source_files ./* ) ADD_LIBRARY( DDClientLibC SHARED ${source_files} ) target_link_libraries( DDClientLibC ${CMAKE_THREAD_LIBS_INIT} ) install (TARGETS DDClientLibC DESTINATION lib)