[CMake] cmake+insure (or purify)

2010-05-18 Thread AKHRES Nader
Hi all, I'd like to use insure (or purify) for my project using cmake. Problematic is that you use 'insure gcc' instead of gcc for compilation and 'insure ld'/'insure gcc' for linking. I manage to make cmake take into account insure gcc for compilation but unfortunately I don't know how to choo

[CMake] CMake and CUDA: Target specific macro definition?

2010-05-18 Thread Nils Brünggel
Hi I'm using CMake to build my CUDA projects and I would like to add some options specifically for CUDA targets. For example to define a macro (-D when using gcc or nvcc) So I tried the following: cuda_add_executable(SimpleTestsCUDA SimpleTests.cu BlockMatr

Re: [CMake] ctest, make test and build config

2010-05-18 Thread ross hennessy
> See the new COMMAND style call to add_test: Great, that was exactly what I was looking for. Thanks for the help! Ross ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Pleas

Re: [CMake] cmake ld fails

2010-05-18 Thread Michael Wild
On 19. May, 2010, at 7:17 , Michael Hertling wrote: > On 05/18/2010 11:13 PM, R. Bryn Fenwick wrote: >> >> Hi, >> >> I have received some code that works on one system, but is failing to >> work for me. Any suggestions how to debug this would be greatly >> appreciated. >> >> I think that I

Re: [CMake] cmake ld fails

2010-05-18 Thread Michael Hertling
On 05/18/2010 11:13 PM, R. Bryn Fenwick wrote: > > Hi, > > I have received some code that works on one system, but is failing to > work for me. Any suggestions how to debug this would be greatly > appreciated. > > I think that I am setting everything up correctly however it appears > to ne

Re: [CMake] ctest, make test and build config

2010-05-18 Thread Bill Hoffman
On 5/18/2010 7:55 PM, ross hennessy wrote: I'm then calling ADD_TEST as follows - ADD_TEST(${TESTNAME} "${CMAKE_COMMAND}" -D WORKING_DIR=\${CMAKE_CFG_INTDIR} -P ${CMAKE_CURRENT_BINARY_DIR}/${TESTNAME}.cmake) I forgot to mention that with CMAKE_CFG_INTDIR I also tried removing the \ which was e

Re: [CMake] ctest, make test and build config

2010-05-18 Thread ross hennessy
> I'm then calling ADD_TEST as follows - > > ADD_TEST(${TESTNAME} "${CMAKE_COMMAND}" -D > WORKING_DIR=\${CMAKE_CFG_INTDIR} -P > ${CMAKE_CURRENT_BINARY_DIR}/${TESTNAME}.cmake) I forgot to mention that with CMAKE_CFG_INTDIR I also tried removing the \ which was escaping the $ so that CMAKE_CFG_INTDI

Re: [CMake] ctest, make test and build config

2010-05-18 Thread ross hennessy
>> ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}, which as I'm on >> windows (I don't think this gets set on linux?), evaluates to either >> ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Debug or >> ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Release. So I would like my test to >> have this information, and how

[CMake] cmake ld fails

2010-05-18 Thread R. Bryn Fenwick
Hi, I have received some code that works on one system, but is failing to work for me. Any suggestions how to debug this would be greatly appreciated. I think that I am setting everything up correctly however it appears to need some hacks. Scanning dependencies of target scimap [ 3%]

Re: [CMake] How to handle git branches

2010-05-18 Thread Andreas Pakulat
On 18.05.10 20:59:50, Michael Wild wrote: > On 18. May, 2010, at 20:52 , Andreas Pakulat wrote: > > I've recently bumped into a few problems with my usage of cmake on a > > git-hosted project and am wondering what others are doing in such cases. > > > > The setup is as follows: The project's maste

Re: [CMake] How to handle git branches

2010-05-18 Thread Michael Wild
On 18. May, 2010, at 20:52 , Andreas Pakulat wrote: > Hi, > > I've recently bumped into a few problems with my usage of cmake on a > git-hosted project and am wondering what others are doing in such cases. > > The setup is as follows: The project's master branch has its dedicated > builddir. No

[CMake] How to handle git branches

2010-05-18 Thread Andreas Pakulat
Hi, I've recently bumped into a few problems with my usage of cmake on a git-hosted project and am wondering what others are doing in such cases. The setup is as follows: The project's master branch has its dedicated builddir. Now when working on a feature I create a branch from master, but I re-

Re: [CMake] Compilation using Qt 4 under windows 7

2010-05-18 Thread n0p n0p
Hi, Thanks !! The line set(MOC_HEADERS ./include/*.h) was the problem. Sorry to have disturbed for such a stupid thing. Thanks ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.htm

Re: [CMake] Compilation using Qt 4 under windows 7

2010-05-18 Thread n0p n0p
Hi, Thanks !! The line set(MOC_HEADERS ./include/*.h) was the problem. Sorry to have disturbed for such a stupid thing. Thanks ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.htm

Re: [CMake] ctest, make test and build config

2010-05-18 Thread Tyler Roscoe
On Tue, May 18, 2010 at 05:37:32PM +1000, ross hennessy wrote: > ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}, which as I'm on > windows (I don't think this gets set on linux?), evaluates to either > ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Debug or > ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Release. So

Re: [CMake] How does CPACK decide what goes into release packages?

2010-05-18 Thread kent williams
Platform: OS X 10.5.8. We also want to support Linux and Windows, but are doing OS X first because it's usally the crankiest to get working. cpack version 2.9.20100511 Using PackageMaker and Tar for generators. I don't have it all worked out, but I think the problems I'm having aren't CPack's fa

Re: [CMake] distribute third party libs with NSIS

2010-05-18 Thread Michael Hertling
On 05/17/2010 08:41 PM, Michaël Presseau wrote: > Hi, I have an application and I need to create an installer. I use CPack with > NSIS. For now, I'm using : > find_package(Boost COMPONENTS thread date_time filesystem REQUIRED) > > This give me le .lib associate to the dll file. This is compiling

Re: [CMake] CMAKE -- MAKE problem -- TARGET_LINK_LIBRARIES related

2010-05-18 Thread Michael Wild
On 18. May, 2010, at 10:46 , Lucian Goron wrote: > this is my problem.. it tells me that it can not find the levmar package: > > luc...@schwarz:~/work/ransac$ make > Linking CXX executable TestAcquireGPS > /usr/bin/ld: cannot find -llevmar > collect2: ld returned 1 exit status > make[2]: *** [Te

[CMake] CMAKE -- MAKE problem -- TARGET_LINK_LIBRARIES related

2010-05-18 Thread Lucian Goron
this is my problem.. it tells me that it can not find the levmar package: luc...@schwarz:~/work/ransac$ make Linking CXX executable TestAcquireGPS /usr/bin/ld: cannot find -llevmar collect2: ld returned 1 exit status make[2]: *** [TestAcquireGPS] Error 1 make[1]: *** [CMakeFiles/TestAcquireGPS.dir

[CMake] ctest, make test and build config

2010-05-18 Thread ross hennessy
Hi, I would like to add a test to my project (using ADD_TEST) and have it "load" files from other directories in the project. These other files that I would like it to load are library files (built by other targets in the project) and config files (created by other targets). These files are locate