Creating CMakeLists.txt for baremetal (was: copying CMakeLists.txt to build directory)
Solved
Qt Creator and other tools
-
Hi all -
I'm trying to set up a project for CMake, but I've run into a problem. My CMakeLists.txt file is in with my other project files (*.c, *.h). When I configure my kit, how do I tell Creator that I want to have this file copied to the build directory? (I don't want an in-source build.)
Thanks...
-
A CMakeLists.txt is never copied to a build dir. It belongs to the sources.
-
A CMakeLists.txt is never copied to a build dir. It belongs to the sources.
@Christian-Ehrlicher OK, then why am I getting a warning "No CMake configuration found!" here?
EDIT:
I'm not sure whether this is relevant, but I do get a configuration error when I run CMake:
/usr/local/gcc-arm-none-eabi-10.3-2021.07/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib/libc.a(lib_a-exit.o): in function `exit': exit.c:(.text.exit+0x2c): undefined reference to `_exit' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.
One of these problems may well be causing the other.