#Headers: set(HEADER_FILES sbuf.h ip.h libnetlink.h ll_map.h utils.h ipaddr.h wireless.h netstat.h ) #Can manually add the sources using the set command as follows: set(SOURCES_FILES sbuf.c ip.c libnetlink.c ll_map.c utils.c ipaddr.c wireless.c netstat.c ) # However, the file(GLOB...) allows for wildcard additions: # file(GLOB SOURCES "*.c") # not used here because some files are being excluded add_library(netaid SHARED ${SOURCES_FILES})