[CMake] visual studio development setup

J Decker d3ck0r at gmail.com
Sun Jun 24 15:19:37 EDT 2012


pick one of the projects, right click, edit properties, set the debug
command line and working directory. There are browse buttons.  This
gets set as part of the user settings.  The default is usually
ALL_BUILD target, and that works fine once you set the debug
properties.

On Sat, Jun 23, 2012 at 12:12 PM, Totte Karlsson
<totte at dunescientific.com> wrote:
> Hi,
> I'm using CMake on a fairly large project involving building several DLL's
> and multiple applications and test programs. The current setup creates a
> visual studio sln file with about 10 individual projects. It has a install
> target and I can run apps that are built in the install folder, meaning
> running them outside the IDE.
>
> However, to run an individual project application from within the IDE don't
> work because at run time they will not find the necessary DLL's (unless I
> put the install's bin folder on the system path, which I don't want, for
> various reasons).  What is 'best practice' here? Obviously this setup is not
> optimal because it don't allow the user to run and debug individual projects
> in the VS IDE.
>
> One way making sense to me would be to have all individual projects output
> path to be the same.
> Is there a way in CMake to configure such a thing? That way all individual
> apps would find needed dll's when debugged from within the VS ide.
>
> Thanks,
> Totte
>
>
> --
>
> 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


More information about the CMake mailing list