[CMake] Accessing intermediate Visual Studio output files

Petr Kmoch petr.kmoch at gmail.com
Mon Oct 8 03:03:55 EDT 2012


Hi Arindam.

AFAIK, there is no such variable (I'd love to be proven wrong). What I
currently do is hard-code the path:
${${projectName}_BINARY_DIR}/${targetName}.dir/...

Petr

On Sat, Oct 6, 2012 at 1:07 PM, Arindam Mukherjee <
arindam.mukerjee at gmail.com> wrote:

> Hi,
>
> I am using cmake to generate VS 2008 solution and project files. The
> directory structure of the source look like this:
>
> Sources:
> src/project1
>      project2
>      project3
>      etc.
>
> Runtime output dir:
> bin/Windows/ver/plat/arch/<binaries>
>
> Build dir:
> cmake/Windows/ver/plat/arch    <-- this is the build dir
>
> So basically at the start of the build I do the following:
>
> 1. cd cmake/Windows/ver/plat/arch
> 2. cmake ../../../../../src
> 3. devenv options top_proj.sln
>
> Now my manifest files are built under the build dir:
>
> cmake/Windows/ver/plat/arch/<proj_subdir>/proj.dir/Release
>
> and I need to copy these to the runtime output dir. But I don't know
> what variable to use to refer to the build dir. Any ideas?
>
> Regards,
> Arindam
> --
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121008/7ffb551a/attachment.htm>


More information about the CMake mailing list