From 65c96700364bcf2eb87e065b0d066befe4ceebbb Mon Sep 17 00:00:00 2001 From: Scott M Anderson Date: Thu, 5 Jan 2023 17:52:39 -0700 Subject: [PATCH] xpSourceListAppend: automatically add .github/* issue https://github.com/smanders/externpro/issues/369 --- modules/xpfunmac.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/xpfunmac.cmake b/modules/xpfunmac.cmake index 51f556a..2923dc2 100644 --- a/modules/xpfunmac.cmake +++ b/modules/xpfunmac.cmake @@ -1066,11 +1066,11 @@ macro(xpSourceListAppend) list(APPEND masterSrcList ${dcFiles}) endif() if(EXISTS ${_dir}/.github) - file(GLOB_RECURSE github_yml "${_dir}/.github/workflows/*.yml") - source_group(".github.yml" FILES ${github_yml}) - list(APPEND masterSrcList ${github_yml}) + file(GLOB_RECURSE githubFiles "${_dir}/.github/*") + source_group(".github" FILES ${githubFiles}) + list(APPEND masterSrcList ${githubFiles}) endif() - add_custom_target(${custTgt} SOURCES ${miscFiles} ${crFiles} ${dcFiles} ${github_yml}) + add_custom_target(${custTgt} SOURCES ${miscFiles} ${crFiles} ${dcFiles} ${githubFiles}) set_property(TARGET ${custTgt} PROPERTY FOLDER ${folder}) endif() endif()