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>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Fri, Dec 5, 2008 at 11:33 AM, Robert Dailey <span dir="ltr"><<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">The documentation says:<br><br>OUTPUT_NAME sets the real name of a target when it is built and can be
used to help create two targets of the same name even though CMake
requires unique logical target names.<br><br>The target being built here seems to be the VCPROJ when using "cmake -G" for visual studio 2008. Can someone help me understand the purpose of OUTPUT_NAME if I am mistaken?<br>
<br><div class="gmail_quote">On Thu, Dec 4, 2008 at 10:32 PM, Mike Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div bgcolor="#FFFFFF"><div>Nope. Sorry.<br><br>Sent from my iPod</div><div><div></div><div class="Wj3C7c"><div><div></div><div><div><br>On Dec 4, 2008, at 22:55, "Robert Dailey" <<a href="mailto:rcdailey@gmail.com" target="_blank">rcdailey@gmail.com</a>> wrote:<br>
<br></div><div></div><blockquote type="cite"><div>I wanted my vcproj files to be placed in "test_projects". Any idea how I can make this happen?<br><br><div class="gmail_quote">On Thu, Dec 4, 2008 at 8:30 PM, Mike Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net" target="_blank"></a><a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">CMAKE_CURRENT_SOURCE_DIR denotes your source tree and NOT the build<br>
tree. Are you building in your source tree instead of using a<br>
dedicated build directory?<br>
<br>
To answer your code you are setting the output directory of where the<br>
executable will be placed in a directory called "test_projects" at the<br>
top level of your build tree.<br>
<br>
Mike Jackson<br>
<div><div></div><div><br>
<br>
On Thu, Dec 4, 2008 at 7:40 PM, Robert Dailey <<a href="mailto:rcdailey@gmail.com" target="_blank"></a><a href="mailto:rcdailey@gmail.com" target="_blank">rcdailey@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I'm trying to use set_target_properties() to make CMake place generated<br>
> vcproj files in a subdirectory of ${CMAKE_CURRENT_SOURCE_DIR}. This isn't<br>
> working and I'm not sure what I'm doing wrong. Below is what I'm doing:<br>
><br>
> set( test_project_name ${project_name}_test_${test_name} )<br>
> project( ${test_project_name} )<br>
> source_group( "" ${file} )<br>
> add_executable( ${test_project_name} ${file} )<br>
> set_target_properties( ${test_project_name} PROPERTIES<br>
> OUTPUT_NAME test_projects/${test_project_name} )<br>
><br>
> My project should be getting placed inside of a test_projects subdirectory,<br>
> right?<br>
><br>
</div></div>> _______________________________________________<br>
> CMake mailing list<br>
> <a href="mailto:CMake@cmake.org" target="_blank"></a><a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank"></a><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
><br>
</blockquote></div><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>CMake mailing list</span><br><span><a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a></span><br>
<span><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a></span></div></blockquote></div></div></div></div></div></blockquote></div><br>
<br>_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div>