Hi! In the case that in C++ project I would have build/ folder separate from bin/ one,…
- User
Hi! In the case that in C++ project I would have build/ folder separate from bin/ one, have I to introduce some lines of code in my CMakeLists.txt? Namely, usually I create a build/ directory, go inside it, and then cmake …/ cmake --build . However, with such commands I will create an executable inside this build/ folder.
- Assistant
Yes, to have your executable placed in a separate directory, you'll need to adjust your CMake configuration accordingly. You can do this by setting the property for your target.