Hi everyone,<br><br>I'm new to cmake, and there's something simple I don't know how to do.<br>Here what I wrote in CMakeLists.txt so far:<br><br>project(test)<br>subdirs(src)<br><br>and in src directory I have another CMakeLists.txt

:<br><br>add_executable(testApp Applications/testApp.cpp) <br><br>and what I want is that the compilation result of testApp.cpp goes into the ./bin directory, but by default it goes into ./src<br>I use ccmake to set it to go to the bin directory, but when I run the compilation the makefile create a src/bin and use it.
<br><br>How to set cmake so it write the binary in ./bin ?<br>Also, in src I have a lot of temporary files (cmake_install.cmake, CMakeFiles, ...), how can I avoid having this in my subdirectories ? Should I write one only 
CMakeLists.txt in the root directory ?<br><br>Regards,<br><br>Mehdi<br><br><br>