I am new to CLion and new to development within Docker, so I apologise in case I am asking something too obvious ... :)
My use case is an existing code base which is:
- a docker container with all the required tools
- a cmake-based build system
- a shell script that prepares quite some stuff and runs cmake for several different configurations
CLion runs on a Windows host and uses Docker Desktop to connect to the Docker container.
My problem now is that I do not know how to configure CLion so that the run configuration uses the Docker container and then just runs the shell script.
In Build, Execution, Deployment -> Toolchains I have a Docker toolchain configured which runs fine (a Docker run config brings me in the container properly).
Then I created a Custom Build Target with my container and the scripts but that target is not built. When I try to build CLion always complains that it "Cannot find any CMake profile".
Can I tell CLion to ignore the CMakeLists.txt file? I suspect it finds that and configures itself for a CMake project, which ours is not in a pure sense.
Thanks for any help.