set(PROTOCOLS ec25519_fhmqvc) set(PROTOCOL_SOURCES "") foreach(protocol ${PROTOCOLS}) add_subdirectory(${protocol}) list(APPEND PROTOCOL_SOURCES $) endforeach(protocol) add_library(protocols STATIC ${PROTOCOL_SOURCES})