SET(LIB_NAME TestTcp) AUX_SOURCE_DIRECTORY(. SOURCES) file(GLOB HEADERS "*.h") add_executable(${LIB_NAME} ${SOURCES} ${HEADERS}) set_property(TARGET ${LIB_NAME} PROPERTY FOLDER Tests) target_link_libraries(${LIB_NAME} PRIVATE proto MqttClient)