I have a mixed language project like this:
-- asm/file1.asm
-- include/file2.h
-- src/file3.c, file4.c
-- linkscripts/file5.lds
-- build/
-- bin/
I want to build demo.elf format file and convert it to demo.bin using objcopy. Also, I want to get file1.o, file3.o and file4.o files and use the file5.lds script file to link.
The assembler is NASM and the compiler is GCC, how to write the CMakeLists.txt file? please help me.