FILE(GLOB _UTILS_SRCS *.cpp) LIST(APPEND UTILS_SRCS ${_UTILS_SRCS}) # Pass to parent set(UTILS_SRCS ${UTILS_SRCS} PARENT_SCOPE)