file(GLOB JAVA_FILES ${JAVA_SRC_DIR}/*.java) list(JOIN JAVA_FILES "\n" JAVA_LST_CONTENT) file(WRITE ${JAVA_LST} ${JAVA_LST_CONTENT})