cmake 3.24
add_executable(
${PROJECT_NAME}
${SOURCES_MCU_STARTUP}
${SOURCES}
${SOURCES_SHARED}
${SOURCES_MCU_DUAL_CPU_BOOT}
)
...
set_target_linker(${PROJECT_NAME} ${SOURCES_MCU_LOADER})
...
source_group(
"startup"
FILES
${SOURCES_MCU_STARTUP}
${SOURCES_MCU_DUAL_CPU_BOOT}
${SOURCES_MCU_LOADER}
REGULAR_EXPRESSION
".+\.s")
I have 3 files in those lists, one blah.c
one blah.s
and one blah.ld
. no matter what I put in regex I get blah.c
and blah.s
. if I change name of source group it changes just fine.
sadly blah.ld
is never listed.
I want to see blah.ld
in sources just in case I need to double check it and tweak it.