file(GLOB sources "./*.cpp") set(Target bhome_shmq) add_library(${Target} ${sources}) target_link_libraries(${Target} bhome_msg pthread rt)