CMake executable location - Stack Overflow
https://stackoverflow.com/questions/934579230.05.2013 · After running cmake ../ ; make, I can run the executable thusly: Project/build$ src/Executable - that is, the Executable is created in the build/src directory. How do I set the location of the executable in the CMakeLists.txt file? I've attempted to follow some of the examples found at cmake.org, but the links that work don't seem to show this ...
cmake Tutorial => Executables
riptutorial.com › cmake › exampleTo create a build target producing an executable, one should use the add_executable command: add_executable (my_exe main.cpp utilities.cpp) This creates a build target, e.g. make my_exe for GNU make, with the appropriate invocations of the configured compiler to produce an executable my_exe from the two source files main.cpp and utilities.cpp.