Re: [CMake] custom target isn't rebuilt if depending on another custom target

2010-09-14 Thread Michael Hertling
On 09/14/2010 11:56 AM, Gerhard Stengel wrote: > Hello Michael, > > thanks, it sheds some light on the matter, but I'm not happy as it is, see > comments below. > > regards > > Gerhard > ... >>> >>> If I create Demo.tar from a clean project, everything's fine. However, >>> the rebuilt isn't per

[CMake] FindLibrary only looks for lib under Windows

2010-09-14 Thread emeplease
Hi, I have modified the FindAPR.cmake module to look for the APR library under Windows. Using Find_Library , the library that it should look for is "libapr-1.dll" , however, cmake fails to find it. If I change the name from "libapr-1.dll" to "libapr-1.lib" , CMake can successfully locate it.

Re: [CMake] cgi sript compile

2010-09-14 Thread Ryan Pavlik
On 9/14/10 2:25 PM, Norman Rädke wrote: I try to compile a c file to an cgi script. The target add_executable only create an executable file, but the output should be an cgi script with extension .cgi. How can i only compile the objectfile of an .c source without linking it into a a library.

Re: [CMake] Use ctest for automatic performance measurement

2010-09-14 Thread Alexander Neundorf
On Tuesday 14 September 2010, Stefan Dänzer wrote: > Hi all, > > I was wondering if one could use cmake/ctest for automatic performance > measurement of applications. > > I would want to use ctest to automatically measure the performance of > a whole system and the individual components of a system

[CMake] cgi sript compile

2010-09-14 Thread Norman Rädke
I try to compile a c file to an cgi script. The target add_executable only create an executable file, but the output should be an cgi script with extension .cgi. How can i only compile the objectfile of an .c source without linking it into a a library. Thanks _

Re: [CMake] How to test classes requiring a server ?

2010-09-14 Thread Bill Hoffman
On 9/14/2010 6:23 AM, Jean-Christophe Fillion-Robin wrote: Hi Folks, Would be great if some people having experience in testing classes required a server could share their knowhow :) Within our project, we have a set of classes that required an instance of a server running to be properly unit t

Re: [CMake] CMake Problem with Visual Studio 2008 Express and Windows 7

2010-09-14 Thread Ryan Pavlik
You might want to see if either CMake or Visual Studio is set to run as administrator - it looks like one of them probably did at one time but no longer does. Deleting the whole build directory and trying again should work. Ryan On Tue, Sep 14, 2010 at 6:18 AM, Conor Downey wrote: > Hey, > > S

Re: [CMake] add_test : expand environment variable at running time

2010-09-14 Thread Olivier Pierard
Thanks for your hint Tyler. Correct answer seems to be '\$ENV{TMPDIR}' in add_test in CMakeLists.txt so that '$ENV{TMPDIR}' is written in the CTestTestFile.cmake. So, command written there is not executed directly in the shell but re-interpreted first by CTest... I hope this is the end of a lo

Re: [CMake] CMake Problem with Visual Studio 2008 Express and Windows 7

2010-09-14 Thread Conor Downey
Hey, Sorry, dunno if its important but this is the guide to what ive been trying to use CMake for: http://sourceforge.net/apps/trac/glestae/wiki/CompileGuideWin As far as i can tell i have all the code/files in the correct places. Cheers, Conor On Tue, Sep 14, 2010 at 12:16 PM, Conor Downey wro

Re: [CMake] CMake Problem with Visual Studio 2008 Express and Windows 7

2010-09-14 Thread Conor Downey
Hi, Ive downloaded 2010 Express but the exact same problem still exists. Here is the build log (i am using CMake 2.8.2): Check for working CXX compiler using: Visual Studio 10 CMake Error: Remove failed on file: C:/Users/Downey/Documents/College/Masters/Gae/build/CMakeFiles/CMakeTmp/Debug/cmTryC

Re: [CMake] Setting environment variables

2010-09-14 Thread Chris Hillery
On Tue, Sep 14, 2010 at 4:03 AM, Gerhard Stengel wrote: > I've experienced the same problem and unfortunately, I think there's no way > to set them permanently. The reason seems to > be that cmake invokes subshells for most of the commands, so the change of > the environment variable only happens

Re: [CMake] Setting environment variables

2010-09-14 Thread Chris Hillery
You didn't mention what operating system you're using, but on Linux, at least, the second thing you asked for: I also tried running the envsetup script alone by using the cmake -P > command, when the script runs it set the values and outputs it correctly, > however after the script finishes execut

Re: [CMake] Setting environment variables

2010-09-14 Thread Gerhard Stengel
Hi Johny, I've experienced the same problem and unfortunately, I think there's no way to set them permanently. The reason seems to be that cmake invokes subshells for most of the commands, so the change of the environment variable only happens in the subshell and never reaches the parent. I wo

[CMake] How to test classes requiring a server ?

2010-09-14 Thread Jean-Christophe Fillion-Robin
Hi Folks, Would be great if some people having experience in testing classes required a server could share their knowhow :) Within our project, we have a set of classes that required an instance of a server running to be properly unit tested. Note that the server can be started easily from a com

[CMake] Setting environment variables

2010-09-14 Thread Johny
Hey, I was trying to setup my environment variables before i start a build , but they do not seem to be working at all. I basically have a Ctest script called driver.ctest which includes another file called envsetup at the beginning. envsetup contains a list of set(ENV{VAR1} VALUE) and somet

Re: [CMake] custom target isn't rebuilt if depending on another custom target

2010-09-14 Thread Gerhard Stengel
Hello Michael, thanks, it sheds some light on the matter, but I'm not happy as it is, see comments below. regards Gerhard ... > > > > If I create Demo.tar from a clean project, everything's fine. However, > > the rebuilt isn't performed completely, that is if I touch Demo1.in, > > just Demo1.o

Re: [CMake] creation of cxx in QT4 gui

2010-09-14 Thread Andreas Pakulat
On 14.09.10 09:37:29, e...@cs.bgu.ac.il wrote: > > hello. > I have a question, I'm assuming that QT4_WRAP_CPP is creating the cxx files, > on a project of mine, I have 3 classes, two of them have a ui file, all > headers are in GUI_HPP list, when I print the content of the variable, I see > the

Re: [CMake] CMake Problem with Visual Studio 2008 Express and Windows 7

2010-09-14 Thread Micha Renner
There were and there are problems with CMake and the Visual Studio Express Versions. See: http://www.cmake.org/pipermail/cmake/2010-May/036962.html (macros) I use the 2010 Express Version, which works astonishingly good. There are still some minor problems (see http://www.cmake.org/pipermail/cmake

Re: [CMake] Use of CMAKE_LIBRARY_OUTPUT_DIRECTORY

2010-09-14 Thread David Aldrich
Hi Ryan > I believe for static libraries, the variable > CMAKE_ARCHIVE_OUTPUT_DIRECTORY > is actually used. Thanks for your answer. That's just what I need. Best regards David ___ Powered by www.kitware.com Visit other Kitware open-source projects

[CMake] Use ctest for automatic performance measurement

2010-09-14 Thread Stefan Dänzer
Hi all, I was wondering if one could use cmake/ctest for automatic performance measurement of applications. I would want to use ctest to automatically measure the performance of a whole system and the individual components of a system. Take for instance an image processing application consisting

[CMake] creation of cxx in QT4 gui

2010-09-14 Thread e...@cs.bgu.ac.il
hello. I have a question, I'm assuming that QT4_WRAP_CPP is creating the cxx files, on a project of mine, I have 3 classes, two of them have a ui file, all headers are in GUI_HPP list, when I print the content of the variable, I see the two headers that have a ui file, when I run it via QT4_WRA