Re: [CMake] how to define current working directory of command line tool

2010-10-29 Thread Ryan Pavlik
On Fri, Oct 29, 2010 at 7:48 AM, Jochen Wilhelmy wrote: > > > Are you trying to run the executable with ADD_TEST? In that case the working directory is always CMAKE_CURRENT_BINARY_DIR. If you need to change it, create a wrapper script (you can do so using the CMake lang

Re: [CMake] how to define current working directory of command line tool

2010-10-29 Thread Jochen Wilhelmy
Are you trying to run the executable with ADD_TEST? In that case the working directory is always CMAKE_CURRENT_BINARY_DIR. If you need to change it, create a wrapper script (you can do so using the CMake language in order to not depend on any other interpreter). no, just

Re: [CMake] how to define current working directory of command line tool

2010-10-11 Thread J Decker
On Mon, Oct 11, 2010 at 2:20 AM, Jochen Wilhelmy wrote: > >>> Hi! >>> >>> >>> Is it possible to define the current working directory of a command >>> line >>> tool >>> that is built with cmake? since the build is usually out-of-source I >>> have >>> to set the current w

Re: [CMake] how to define current working directory of command line tool

2010-10-11 Thread Ryan Pavlik
You could look at my CreateLaunchers.cmake script, in http://github.com/rpavlik/wiimote-head-tracker-gui/tree/master/cmake/ - I use this so that I can click the "run" button in Visual Studio, it produces the files needed to set that up properly. (The only caveat is that you can't have visual

Re: [CMake] how to define current working directory of command line tool

2010-10-11 Thread Michael Hertling
On 10/11/2010 11:20 AM, Jochen Wilhelmy wrote: > >>> Hi! >>> >>> Is it possible to define the current working directory of a command line >>> tool >>> that is built with cmake? since the build is usually out-of-source I >>> have >>> to set the current working directory i

Re: [CMake] how to define current working directory of command line tool

2010-10-11 Thread Michael Wild
On 11. Oct, 2010, at 11:20 , Jochen Wilhelmy wrote: > >>> Hi! >>> >>> Is it possible to define the current working directory of a command line >>> tool >>> that is built with cmake? since the build is usually out-of-source I >>> have >>> to set the current working direc

Re: [CMake] how to define current working directory of command line tool

2010-10-11 Thread Jochen Wilhelmy
Hi! Is it possible to define the current working directory of a command line tool that is built with cmake? since the build is usually out-of-source I have to set the current working directory in the ide, e.g visual studio or xcode. more convenient would be to set it in cmake.

Re: [CMake] how to define current working directory of command line tool

2010-10-11 Thread Michael Wild
On 11. Oct, 2010, at 10:07 , Jochen Wilhelmy wrote: > Hi! > Is it possible to define the current working directory of a command line > tool > that is built with cmake? since the build is usually out-of-source I have > to set the current working directory in the ide, e.g visual stu

Re: [CMake] how to define current working directory of command line tool

2010-10-11 Thread Andreas Pakulat
On 11.10.10 10:07:58, Jochen Wilhelmy wrote: > Hi! > Is it possible to define the current working directory of a command line > tool > that is built with cmake? since the build is usually out-of-source I have > to set the current working directory in the ide, e.g visual studio or >

Re: [CMake] how to define current working directory of command line tool

2010-10-11 Thread Jochen Wilhelmy
Hi! Is it possible to define the current working directory of a command line tool that is built with cmake? since the build is usually out-of-source I have to set the current working directory in the ide, e.g visual studio or xcode. more convenient would be to set it in cmake. Do you

Re: [CMake] how to define current working directory of command line tool

2010-10-10 Thread Michael Wild
On 11. Oct, 2010, at 24:13 , Andreas Pakulat wrote: > On 10.10.10 21:41:05, Jochen Wilhelmy wrote: Hi! Is it possible to define the current working directory of a command line tool that is built with cmake? since the build is usually out-of-source I have to set the

Re: [CMake] how to define current working directory of command line tool

2010-10-10 Thread Andreas Pakulat
On 10.10.10 21:41:05, Jochen Wilhelmy wrote: > >>Hi! > >> > >>Is it possible to define the current working directory of a command line > >>tool > >>that is built with cmake? since the build is usually out-of-source I have > >>to set the current working directory in the ide, e.g visual studio or > >

Re: [CMake] how to define current working directory of command line tool

2010-10-10 Thread Jochen Wilhelmy
Hi! Is it possible to define the current working directory of a command line tool that is built with cmake? since the build is usually out-of-source I have to set the current working directory in the ide, e.g visual studio or xcode. more convenient would be to set it in cmake. Do you mea

Re: [CMake] how to define current working directory of command line tool

2010-10-10 Thread Alexander Neundorf
On Saturday 09 October 2010, Jochen Wilhelmy wrote: > Hi! > > Is it possible to define the current working directory of a command line > tool > that is built with cmake? since the build is usually out-of-source I have > to set the current working directory in the ide, e.g visual studio or > xcode.

[CMake] how to define current working directory of command line tool

2010-10-09 Thread Jochen Wilhelmy
Hi! Is it possible to define the current working directory of a command line tool that is built with cmake? since the build is usually out-of-source I have to set the current working directory in the ide, e.g visual studio or xcode. more convenient would be to set it in cmake. -Jochen ___