Re: [CMake] directory traverse guidance

2011-01-24 Thread Andreas Pakulat
On 25.01.11 02:57:27, luxInteg wrote: > Greetings > > I am learning cmake > > consider my project with two directories dir1 and dir2 > > if I want to:- > move to dir1 and add a library libA in dir1 > move to dir2 and add a library libB in dir2 > move back to dir1 and add a test testA

Re: [CMake] cmake with LaTeX [UseLATEX.cmake]

2011-01-24 Thread Daniel Pfeifer
Am Dienstag, den 25.01.2011, 15:41 +0900 schrieb Raymond Wan: > Everything is fine except that pdflatex > doesn't seem to work with images well on my system... That's of > course my system [or my :-) ] fault, though. Do you use the IMAGE_DIRS or IMAGES parameters? UseLATEX.cmake should then conv

[CMake] cmake with LaTeX [UseLATEX.cmake]

2011-01-24 Thread Raymond Wan
Hi all, I'm not sure if many people have experience with UseLATEX.cmake (http://www.cmake.org/Wiki/CMakeUserUseLATEX), but I have a question which I guess is general. Everything is fine except that pdflatex doesn't seem to work with images well on my system... That's of course my system [or my :

Re: [CMake] cmake config.h

2011-01-24 Thread luxInteg
On Sunday 28 November 2010 16:03:33 luxInteg wrote: > I came across the useful wiki > http://www.cmake.org/Wiki/CMake:How_To_Write_Platform_Checks > I need '1's in config.g and I dont know how these are generated. For gsl This the cmake output:- -- Looking for sys/types.h -- Looking for sys/typ

[CMake] directory traverse guidance

2011-01-24 Thread luxInteg
Greetings I am learning cmake consider my project with two directories dir1 and dir2 if I want to:- move to dir1 and add a library libA in dir1 move to dir2 and add a library libB in dir2 move back to dir1 and add a test testA in dir1 move back to dir2 and add a test testB to dir2

Re: [CMake] Cannot run/debug cmake project with MSVC 2010 which works well in Linux

2011-01-24 Thread David Cole
Right click on "textureBackProjection" and choose "Set as StartUp Project" -- after that, F5 will launch the executable for that project. If you are receiving error messages at launch after doing that, then please send them along so we can help you get further along... HTH, David On Mon, Jan 2

[CMake] Cannot run/debug cmake project with MSVC 2010 which works well in Linux

2011-01-24 Thread Srimal Jayawardena
Hi Thanks for the wonderful tool. I'm fairly new to cmake and had this problem. I'm using cmake 2.8.3 and my code builds and runs well in Linux but has the following problems in MS Visual Studio 2010 (Express) in Windows XP. I cant run/debug the project by pressing (F5) although it does build s

Re: [CMake] Use Eigen2 in CMake based project

2011-01-24 Thread Stefan Dänzer
Wow, that was quick ;o) thanks for the FindEigen2.cmake module. It works just fine. Best regards, Stefan On Tue, Jan 25, 2011 at 12:19 AM, Marcus D. Hanwell < marcus.hanw...@kitware.com> wrote: > On Mon, Jan 24, 2011 at 6:15 PM, Stefan Dänzer > wrote: > > Hi all, > > I have searched for the c

Re: [CMake] Use Eigen2 in CMake based project

2011-01-24 Thread Marcus D. Hanwell
On Mon, Jan 24, 2011 at 6:15 PM, Stefan Dänzer wrote: > Hi all, > I have searched for the correct way to include the Eigen2 linear algebra > library in my CMake based project. But doing a search has not brought up a > suitable result. Has anyone used Eigen2 in their project? A CMake sample > scrip

[CMake] Use Eigen2 in CMake based project

2011-01-24 Thread Stefan Dänzer
Hi all, I have searched for the correct way to include the Eigen2 linear algebra library in my CMake based project. But doing a search has not brought up a suitable result. Has anyone used Eigen2 in their project? A CMake sample script including Eigen2 would be most helpful. Regards, Stefan --

Re: [CMake] CDash submissions show up as two entries, one row for update, one for build/test etc

2011-01-24 Thread David Cole
On Mon, Jan 24, 2011 at 3:09 PM, Rolf Eike Beer wrote: > > I found the issue. I happened to put a trailing newline in CTEST_SITE, > > causing some error further down the line. I guess CDash could deal > > with it a bit better, but all in all it's a user error. (I utilized > > the hostname command

Re: [CMake] CDash submissions show up as two entries, one row for update, one for build/test etc

2011-01-24 Thread Rolf Eike Beer
> I found the issue. I happened to put a trailing newline in CTEST_SITE, > causing some error further down the line. I guess CDash could deal > with it a bit better, but all in all it's a user error. (I utilized > the hostname command to get the hostname, but forgot to use > OUTPUT_STRIP_TRAILING_W

Re: [CMake] Produce only an object file (*.o) from a CMake build target

2011-01-24 Thread Alexander Neundorf
On Monday 24 January 2011, David Cole wrote: > On Mon, Jan 24, 2011 at 2:33 PM, Andreas Pakulat wrote: > > On 24.01.11 09:37:01, Helseth, Nicholas H wrote: > > > I'm trying to build an object file using CMake, but I can't seem to > > > get CMake to build something other than a complete executable.

Re: [CMake] Produce only an object file (*.o) from a CMake build target

2011-01-24 Thread David Cole
On Mon, Jan 24, 2011 at 2:33 PM, Andreas Pakulat wrote: > On 24.01.11 09:37:01, Helseth, Nicholas H wrote: > > I'm trying to build an object file using CMake, but I can't seem to > > get CMake to build something other than a complete executable. I'm > > basically looking for the result of the fol

Re: [CMake] Produce only an object file (*.o) from a CMake build target

2011-01-24 Thread Andreas Pakulat
On 24.01.11 09:37:01, Helseth, Nicholas H wrote: > I'm trying to build an object file using CMake, but I can't seem to > get CMake to build something other than a complete executable. I'm > basically looking for the result of the following compilation (the > result will be loaded on a VxWorks targe

Re: [CMake] CDash submissions show up as two entries, one row for update, one for build/test etc

2011-01-24 Thread Johan Björk
Hi David, I found the issue. I happened to put a trailing newline in CTEST_SITE, causing some error further down the line. I guess CDash could deal with it a bit better, but all in all it's a user error. (I utilized the hostname command to get the hostname, but forgot to use OUTPUT_STRIP_TRAILING_

Re: [CMake] Improvements for cross-referencing in the documentation?

2011-01-24 Thread Alexander Neundorf
On Monday 24 January 2011, SF Markus Elfring wrote: > > We already have this bug filed to improve CTest and CPack documentation: > > http://public.kitware.com/Bug/view.php?id=10067 > > I guess that the selection of a proper documentation format is a general > problem for all applications. > Which a

[CMake] Produce only an object file (*.o) from a CMake build target

2011-01-24 Thread Helseth, Nicholas H
I'm trying to build an object file using CMake, but I can't seem to get CMake to build something other than a complete executable. I'm basically looking for the result of the following compilation (the result will be loaded on a VxWorks target and linked then-it needs to be a *.o because of the

Re: [CMake] How to retrieve the property list dynamically?

2011-01-24 Thread David Cole
On Mon, Jan 24, 2011 at 11:44 AM, SF Markus Elfring < elfr...@users.sourceforge.net> wrote: > There are links to the "well known by CMake" properties that exist on >> various >> entities: global, directories, targets, tests, files, cache variables. >> > > I have not overlooked the description for

Re: [CMake] Improvements for cross-referencing in the documentation?

2011-01-24 Thread SF Markus Elfring
We already have this bug filed to improve CTest and CPack documentation: http://public.kitware.com/Bug/view.php?id=10067 I guess that the selection of a proper documentation format is a general problem for all applications. Which are your format favourites for CMake components at the moment?

Re: [CMake] How to retrieve the property list dynamically?

2011-01-24 Thread SF Markus Elfring
There are links to the "well known by CMake" properties that exist on various entities: global, directories, targets, tests, files, cache variables. I have not overlooked the description for them. I guess that these properties were extended during CMake history. I do not want to convert this p

Re: [CMake] How to retrieve the property list dynamically?

2011-01-24 Thread David Cole
On Mon, Jan 24, 2011 at 11:16 AM, SF Markus Elfring < elfr...@users.sourceforge.net> wrote: > No, there is presently no facility for retrieving a list of properties. >> > > Is such a functionality also missing for variable names and their > attributes? > If you look at the top of this page: http:

Re: [CMake] Improvements for cross-referencing in the documentation?

2011-01-24 Thread David Cole
On Mon, Jan 24, 2011 at 11:10 AM, SF Markus Elfring < elfr...@users.sourceforge.net> wrote: > No, it does not. Any cross-references are mentioned in text only form and >> depend >> on the end user finding the cross-reference topic. >> > > Would you like to change this situation? > > Regards, > Mar

Re: [CMake] How to retrieve the property list dynamically?

2011-01-24 Thread SF Markus Elfring
No, there is presently no facility for retrieving a list of properties. Is such a functionality also missing for variable names and their attributes? Are more software developers interested to query settings only from a subset of items? Regards, Markus ___

Re: [CMake] Improvements for cross-referencing in the documentation?

2011-01-24 Thread SF Markus Elfring
No, it does not. Any cross-references are mentioned in text only form and depend on the end user finding the cross-reference topic. Would you like to change this situation? Regards, Markus ___ Powered by www.kitware.com Visit other Kitware open-sourc

Re: [CMake] How to retrieve the property list dynamically?

2011-01-24 Thread David Cole
On Sat, Jan 22, 2011 at 5:00 PM, SF Markus Elfring < elfr...@users.sourceforge.net> wrote: > Hello, > > Various properties can be queried by the command "get_property". > http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Properties > > I am looking for a command in the corresponding programm

Re: [CMake] Improvements for cross-referencing in the documentation?

2011-01-24 Thread David Cole
On Mon, Jan 24, 2011 at 11:01 AM, SF Markus Elfring < elfr...@users.sourceforge.net> wrote: > Much to my surprise, there was only a single "CMAKE_MATCH" on our >> whole documentation page. It would make sense to document the variables >> CMAKE_MATCH_0 and friends explicitly. And cross-referencing

Re: [CMake] Improvements for cross-referencing in the documentation?

2011-01-24 Thread SF Markus Elfring
Much to my surprise, there was only a single "CMAKE_MATCH" on our whole documentation page. It would make sense to document the variables CMAKE_MATCH_0 and friends explicitly. And cross-referencing left, right, north and south would also be good. Does the current documentation format support det

Re: [CMake] ExternalProject_Add, race conditions, MSVC_IDE

2011-01-24 Thread Marcus D. Hanwell
On Mon, Jan 24, 2011 at 9:50 AM, David Cole wrote: > On Sat, Jan 22, 2011 at 8:15 AM, Pau Garcia i Quiles > wrote: >> >> Hello, >> >> I've been using ExternalProject_Add and I have to say IMHO it's one of >> the best features added to CMake in the last years. It works great for >> me on Linux (ma

Re: [CMake] ExternalProject_Add, race conditions, MSVC_IDE

2011-01-24 Thread David Cole
On Sat, Jan 22, 2011 at 8:15 AM, Pau Garcia i Quiles wrote: > Hello, > > I've been using ExternalProject_Add and I have to say IMHO it's one of > the best features added to CMake in the last years. It works great for > me on Linux (makefiles), MSVC2010 (NMake Makefiles) and Mac > (makefiles). > >

Re: [CMake] about Linking CXX executable main fail

2011-01-24 Thread Rolf Eike Beer
> ADD_EXECUTABLE(main .) > Linking CXX executable main > /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crt1.o: In function > `_start': > (.text+0x20): undefined reference to `main' > collect2: ld returned 1 exit status > make[2]: *** [main] Error 1 > make[1]: *** [CMakeFiles/main.dir/all] Er

[CMake] about Linking CXX executable main fail

2011-01-24 Thread doherty pete
my project tree is . |-- Bin | |-- oh yeah.aac | `-- oh yeah.h264 |-- CMakeCache.txt |-- CMakeFiles | |-- CMakeCCompiler.cmake | |-- cmake.check_cache | |-- CMakeCXXCompiler.cmake | |-- CMakeDetermineCompilerABI_C.bin | |-- CMakeDetermineCompilerABI_CXX.bin | |-- CMakeDirectoryInfo