See the target property: http://cmake.org/cmake/help/v2.8.8/cmake.html#prop_tgt:RUNTIME_OUTPUT_DIRECTORY
And the corresponding variable CMAKE_RUNTIME_OUTPUT_DIRECTORY. HTH, David On Sat, Jun 23, 2012 at 3:12 PM, Totte Karlsson <[email protected]> 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 -- 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
