Hello, I want to add an executable file (debug/release version) to the CTest (ADD_TEST) due to the selected build type (debug/release). I use Visual Studio 2005, so the executable file is written to the debug or release folder corresponding to the build type. I have to query, which build type is selected. How should I query the build type or is there a workaround?
Thanks for your help, Markus -----Ursprüngliche Nachricht----- Von: Richard Moreland [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 14. August 2007 20:02 An: MS Betreff: Re: AW: [CMake] How to create a solution folder in Visual Studio 2005? Hi, The source is at: http://www.cmake.org/files/v2.4/cmake-2.4.6.zip Remember, when CMake is run, the Debug/Release configuration has not been selected yet. You may want to rethink your approach. It is possible to use $(ConfigurationName) variable, however. Let me know what you are trying to do, I may be able to help you. -Richard MS wrote: > Hello, > thanks for your reply. It's nearly that I want, but I only want to create > custom solution folders in Visual Studio IDE. How and where do I get sources > of version 2.4.6? > Second question: Is there a way to query the configuration state > (debug/release) of Visual Studio IDE using Cmake? I want to make a decision > in my CMakeLists file due to this state. > > Thanks, > Markus > > -----Ursprüngliche Nachricht----- > Von: Richard Moreland [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 14. August 2007 15:13 > An: MS; [email protected] > Betreff: Re: [CMake] How to create a solution folder in Visual Studio 2005? > > Hi, > > I recently added support for Solution Folders in VS2K5 by making these > changes: > > http://ncogni.to/cmake_solution_folders.zip > > It creates a solution folder hierarchy that matches your folder > hierarchy on disk. See http://ncogni.to/sshot-40.png to see what I > mean. If this isn't what you want, at least you can see how I > implemented it by diffing my files against 2.4.6. > > You'll need to download the CMake 2.4.6 source (I did this before 2.4.7 > was released), apply these files, and build. Then, just > Set(NEST_SOLUTION_FOLDERS True) in your toplevel CMakeLists.txt. > > Hope this helps, > Richard > > MS wrote: > >> Hello, >> >> how can I create a solution folder in Visual Studio 2005 using CMake? >> >> >> >> Thanks, >> >> Markus >> >> > > > _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
