Forgot the list initially
---------- Forwarded message ---------- From: Eric Noulard <eric.noul...@gmail.com> Date: 2011/2/2 Subject: Re: [CMake] Executable in the main directory To: Enrique Izaguirre <enrique.izagui...@gmail.com> 2011/2/2 Enrique Izaguirre <enrique.izagui...@gmail.com>: > Hello, > > Is it possible to create an executable in your top directory if you don't > have there any program? I mean, if all your programs .c and .cpp are in > subdirectories contained in your top directory, each one with its own > CMakeLists.txt. > I have three subdirectories, and all my programs are in these > subdirectories. I don't have any in my main directory, but the executable > should be created in the main directoy. Is it possible? How? Yes you can. You can control the output directory for executable/library using EXECUTABLE_OUTPUT_PATH and/or LIBRARY_OUTPUT_PATH see; http://www.cmake.org/Wiki/CMake_Useful_Variables >From your question, I think you may be trying to do something that is not in the CMake-way-of-building. First of all using CMake ones tends to suggest to build 'out-of-tree': http://www.cmake.org/Wiki/CMake_FAQ#Out-of-source_build_trees Then do you need your executables "in the top dir" for devel purpose or something else? -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake