On Fri, Dec 5, 2008 at 10:48 AM, David Cole <span dir="ltr"><<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The target name is the name given as the first argument to ADD_LIBRARY, ADD_EXECUTABLE or ADD_CUSTOM_TARGET.<div><br></div><div>CMake uses the target name to create the name of the vcproj files.</div><div><br></div><div>By default, the name of the library or executable created is based on the target name and any appropriate prefixes or suffixes. But, if you specify OUTPUT_NAME, then the name of the library or executable created is based on OUTPUT_NAME instead. (Nothing to do with the vcproj file name.)</div>
<div><br></div><div>There is no way to rename or move the vcproj files. They are always named the same as the corresponding target and they are always in the CMAKE_CURRENT_BINARY_DIR corresponding to the CMAKE_CURRENT_SOURCE_DIR containing the CMakeLists.txt file that contains the ADD_LIBRARY (or other) command.</div>
</blockquote></div><br>I know for a fact this can be done. If you look at the Boost.CMake build system, you will see that for their test projects they are placed in a directory named "${project-name}-test", whereas the CMakeLists.txt file for the tests is in a differently named directory. I'm not sure how this is done, and CMake isn't very intuitive to read, especially since Boost CMake files are so complex so I'm having difficulty finding the code that does this.<br>