Re: [CMake] CMAKE equivalent of qmake's MOC_DIR

2008-07-23 Thread David Boosalis
The one complaint I have with building in another directory is when working with emacs.  I like to do my make inside of emacs, that way when there is a compile error message I can click on it from emacs and it takes me right to the offending line.  The only problem is that if I have to close al

Re: [CMake] FW: cmake newbie questions

2008-07-23 Thread Bill Hoffman
Phil Smith wrote: Ah. I'm using GNU make. Will try that tomorrow (I'm on East coast, and it's bedtime)! Thanks. I see that: > C:/PROGRA~1/GnuWin32/bin/make.exe What version of gmake is this? make --version -Bill ___ CMake mailing list CMake@cma

Re: [CMake] FW: cmake newbie questions

2008-07-23 Thread Phil Smith
Ah. I'm using GNU make. Will try that tomorrow (I'm on East coast, and it's bedtime)! Thanks. -Original Message- From: Bill Hoffman [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 10:40 PM To: Phil Smith Cc: cmake@cmake.org Subject: Re: [CMake] FW: cmake newbie questions Phil Sm

Re: [CMake] FW: cmake newbie questions

2008-07-23 Thread Bill Hoffman
Phil Smith wrote: Um, right. Cut&paste misfire, hit SEND instead of PASTE. The error: --- CMake Error at C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE): The C compiler "C:/Program Files/Dignus/dcc.exe" is not able to compile

Re: [CMake] FW: cmake newbie questions

2008-07-23 Thread Phil Smith
Um, right. Cut&paste misfire, hit SEND instead of PASTE. The error: --- CMake Error at C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE): The C compiler "C:/Program Files/Dignus/dcc.exe" is not able to compile a simple test prog

Re: [CMake] FW: cmake newbie questions

2008-07-23 Thread Bill Hoffman
Phil Smith wrote: Well, that certainly changed the error: And the error is? -Bill ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] FW: cmake newbie questions

2008-07-23 Thread Phil Smith
Well, that certainly changed the error: -Original Message- From: Bill Hoffman [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2008 10:01 PM To: Phil Smith Cc: cmake@cmake.org Subject: Re: [CMake] FW: cmake newbie questions Phil Smith wrote: > Is my problem so vague that nobody even h

Re: [CMake] FW: cmake newbie questions

2008-07-23 Thread John Drescher
On Wed, Jul 23, 2008 at 10:01 PM, Phil Smith <[EMAIL PROTECTED]> wrote: > Thanks...that's a good suggestion; I think I've done it, but I'm at that > point where I *think* I've done everything, and may have gone in circles. > > How do I tell it "It's a make build" without using the GUI? There must

Re: [CMake] FW: cmake newbie questions

2008-07-23 Thread Bill Hoffman
Phil Smith wrote: Is my problem so vague that nobody even has a suggestion? If so, are there things I can try to answer that might help? Thanks... -Original Message- From: Phil Smith Sent: Tuesday, July 22, 2008 4:03 PM To: 'cmake@cmake.org' Subject: cmake newbie questions Disclaimer

[CMake] FW: cmake newbie questions

2008-07-23 Thread Phil Smith
Is my problem so vague that nobody even has a suggestion? If so, are there things I can try to answer that might help? Thanks... -Original Message- From: Phil Smith Sent: Tuesday, July 22, 2008 4:03 PM To: 'cmake@cmake.org' Subject: cmake newbie questions Disclaimer: I'm new to cmake,

Re: [CMake] how to make OpenGTL rpm?

2008-07-23 Thread Matthew Woehlke
Eric Noulard wrote: You may build "canonical RPM" (both binary and src RPM) using the UseRPMTools.cmake macros http://www.cmake.org/Wiki/CMakeUserUseRPMTools I'll keep it in mind, thanks. Meanwhile, it seems that Fedora's method requiring a .spec generates all the rpm-invoking stuff itself, an

[CMake] Finding cyclic dependency that trigger re-execution

2008-07-23 Thread Mathieu Malaterre
Hi, I have an annoying cycling dependency that appear when I use cmake 2.4.8 on debian etch but not on cmake 2.4.5 on debian stable. I'd like to know what is the way to track it down ? Thanks -- Mathieu ___ CMake mailing list CMake@cmake.org http:/

Re: [CMake] generic Symbian gcce-toolchain file

2008-07-23 Thread Alexander Neundorf
On Wednesday 23 July 2008, Andreas Pokorny wrote: > Hello, > > > So set WIN32 to true and see what happens. If it has bad side effects you > > could also do > > set(SYMBIAN TRUE) > > in the platform file and add that one test in cmTarget. > > I am sure it will have bad side effects for us sooner or

Re: [CMake] Installing OSX Frameworks

2008-07-23 Thread Shead, Timothy
On 7/23/08 1:45 PM, "Bill Hoffman" <[EMAIL PROTECTED]> wrote: > There is also a module in CMake that we have been using for this type of > thing. See Modules/GetPrerequisites.cmake. Man, those Kitware guys think of everything ;) While I'm at it, is there a good way to install an external shared

Re: [CMake] Installing OSX Frameworks

2008-07-23 Thread Bill Hoffman
Bill Hoffman wrote: Which is then used during the install phase by calling it as a script something like this: install(CODE "set(input_file \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${APP_BUNDLE_LOCATION}/APP.app/Contents/MacOS/APP\")") install(CODE "set(lib_path \"${EXECUTABLE_OUTPUT_P

Re: [CMake] Installing OSX Frameworks

2008-07-23 Thread Bill Hoffman
Shead, Timothy wrote: On 7/23/08 11:14 AM, "Mike Arthur" <[EMAIL PROTECTED]> wrote: On Wednesday 23 July 2008 16:06:21 Mike Jackson wrote: What would probably be nice at this point would be an example OS X centric project that uses all these ideas with code explanations for each step. I think

Re: [CMake] Installing OSX Frameworks

2008-07-23 Thread Mike Jackson
On Jul 23, 2008, at 3:20 PM, Shead, Timothy wrote: On 7/23/08 11:14 AM, "Mike Arthur" <[EMAIL PROTECTED]> wrote: On Wednesday 23 July 2008 16:06:21 Mike Jackson wrote: What would probably be nice at this point would be an example OS X centric project that uses all these ideas with code expla

Re: [CMake] Installing OSX Frameworks

2008-07-23 Thread Shead, Timothy
On 7/23/08 11:14 AM, "Mike Arthur" <[EMAIL PROTECTED]> wrote: > On Wednesday 23 July 2008 16:06:21 Mike Jackson wrote: >> What would probably be nice at this point would be an example OS X >> centric project that uses all these ideas with code explanations for >> each step. > I think what would be

Re: [CMake] CMAKE equivalent of qmake's MOC_DIR

2008-07-23 Thread Andreas Pakulat
On 23.07.08 13:31:22, Thomas Burdick wrote: > It'd still be nice to specify where these files go, even if its not > necessarily needed. In source builds tend to get messy otherwise. Then don't do in-source builds. Seriously if you want your sourcedir to be clean, there's only one right way to do t

Re: [CMake] CMAKE equivalent of qmake's MOC_DIR

2008-07-23 Thread Thomas Burdick
It'd still be nice to specify where these files go, even if its not necessarily needed. In source builds tend to get messy otherwise. -Tom On Tue, Jul 22, 2008 at 4:57 PM, Andreas Pakulat <[EMAIL PROTECTED]> wrote: > On 22.07.08 14:02:06, David Boosalis wrote: > > Hi > > > > The qmake variable M

Re: [CMake] make arguments

2008-07-23 Thread Filipe Sousa
Bill Hoffman wrote: Christian Ehrlicher wrote: This is done when using ctest to build for testing. In a "non-declarative" ctest script you can do this: SET (CTEST_BUILD_COMMAND "make -i -j8") In a declarative ctest script you can add this to the cache: MAKECOMMAND:STRING=/usr/bin/make -i -j

[CMake] get_filename_component ABSOLUTE doesn't work?

2008-07-23 Thread Mike Arthur
Maybe I don't understand the documentation but it seems to suggest it resolves symlinks? However, if I use this on e.g. /usr/lib/libmodulename.so which is symlinked to /usr/lib/libmodulename.so.0.0 then it doesn't seem to resolve. Any ideas? -- Cheers, Mike Arthur __

Re: [CMake] Installing OSX Frameworks

2008-07-23 Thread Mike Arthur
On Wednesday 23 July 2008 16:06:21 Mike Jackson wrote: > What would probably be nice at this point would be an example OS X > centric project that uses all these ideas with code explanations for > each step. I think what would be nice is if CMake did this for us! If this is fairly standard when pa

Re: [CMake] make arguments

2008-07-23 Thread Bill Hoffman
Christian Ehrlicher wrote: Von: Milan Dorak I can't find in documentation or anywhere else, how can i pass argument to make command. I need 'make -j 3'. don't care if it's in CMakeLists.txt or CTest script. Since when does cmake executes make directly? It's only creating makefiles for make..

Re: [CMake] Installing OSX Frameworks

2008-07-23 Thread Mike Jackson
On Jul 23, 2008, at 11:32 AM, Shead, Timothy wrote: On 7/23/08 9:06 AM, "Mike Jackson" <[EMAIL PROTECTED]> wrote: What should be happening is that your application should be linked with libraries that have an "install_name" set to @execuatble_path/../ Frameworks" or "@executable_path/

Re: [CMake] Installing OSX Frameworks

2008-07-23 Thread Shead, Timothy
On 7/23/08 9:06 AM, "Mike Jackson" <[EMAIL PROTECTED]> wrote: > What should be happening is that your application should be linked > with libraries that have an "install_name" set to @execuatble_path/../ > Frameworks" or "@executable_path/../Dylibs/" or something > along those lines. If yo

Re: [CMake] Installing OSX Frameworks

2008-07-23 Thread Mike Jackson
On Jul 22, 2008, at 7:58 PM, Shead, Timothy wrote: On 7/22/08 10:56 AM, "Mike Arthur" <[EMAIL PROTECTED]> wrote: Has anyone worked out a nice way of installing the needed OSX frameworks into my application bundle? If you use the (bleeding-edge) CPack bundle generator, you can install fram

Re: [CMake] make arguments

2008-07-23 Thread Tim Schooley
Hi, Milan Dorak wrote: > I can't find in documentation or anywhere else, how can i pass argument > to make command. > I need 'make -j 3'. don't care if it's in CMakeLists.txt or CTest script. _You_ invoke make, not any of the CMake scripts. E.g. mkdir build cd build cmake /path/to/source make C

Re: [CMake] [vtk-developers] 32bit IDs on 64 bit machine

2008-07-23 Thread John Biddiscombe
Brad It's just a cvs checkout of paraview head from a few days ago, the tarball is here ftp://ftp.cscs.ch/out/biddisco/vtk/vtkgui.tar.gz JB John Biddiscombe wrote: Brad King wrote: I don't know, but there have been a few dependency fixes since 2.4.8. I'd rathe

Re: [CMake] Static build against system/third-party libraries?

2008-07-23 Thread Mike Jackson
Take a look at the CMAKE_FIND_LIBRARY_SUFFIXES variable. Here is the help section: CMAKE_FIND_LIBRARY_SUFFIXES: Suffixes to append when looking for libraries. This specifies what suffixes to add to library names when the find_library command looks for libraries. On Windows systems this is

Re: [CMake] CPACK installation path configuration

2008-07-23 Thread Hans Johnson
Yuri, Thanks for all your help. This information is extremely helpful. I've not successfully made both pkg and rpm packages. The little bits of code that you provided (i.e. CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) are very helpful. Thanks, Hans > From: Yuri Timenkov <[EMAIL PROTECTED]> >

[CMake] Static build against system/third-party libraries?

2008-07-23 Thread Mike Arthur
How can I get target_link_libraries to chose a static library over a dynamic so I can do a static build with CMake? Bonus points for a cross-platform solution! Thanks! -- Cheers, Mike Arthur ___ CMake mailing list CMake@cmake.org http://www.cmake.org/

Re: [CMake] Two differents packages in the same cmake project

2008-07-23 Thread Mathieu Malaterre
CMake does not support currently generating two package for the DEB target. A notion of 'Groups' was recently added in CMake CVS and I started investigating how to implement it for the DEB target but never found the time to finish it up :( HTH On Wed, Jul 23, 2008 at 11:53 AM, David <[EMAIL PROTE

Re: [CMake] generic Symbian gcce-toolchain file

2008-07-23 Thread Andreas Pokorny
Hello, > So set WIN32 to true and see what happens. If it has bad side effects you > could also do > set(SYMBIAN TRUE) > in the platform file and add that one test in cmTarget. I am sure it will have bad side effects for us sooner or later. Do we have to provide a patch for cmTarget? Why is this

Re: [CMake] [vtk-developers] 32bit IDs on 64 bit machine

2008-07-23 Thread Brad King
John Biddiscombe wrote: > Brad King wrote: > >> I don't know, but there have been a few dependency fixes since 2.4.8. >> I'd rather not track down a bug we already fixed. Please try it. >> > > I built paraview using cmake 2.6 patch 0, first using 64 bit IDs, then I > changed to 32bits anf bui

Re: [CMake] Issue with Visual Studio 8 2005 Win64

2008-07-23 Thread Bill Hoffman
Malhotra, Anupam wrote: Hi I created a solution for Visual Studio 8 2005 Win64 using CMake. The sln has various projects all of which are to be built using VS 2005 for x64. When the sln is opened, the x64 configuration is selected by default for all projects.I have set some project depende

Re: [CMake] [vtk-developers] 32bit IDs on 64 bit machine

2008-07-23 Thread John Biddiscombe
Brad King wrote: I don't know, but there have been a few dependency fixes since 2.4.8. I'd rather not track down a bug we already fixed. Please try it. I built paraview using cmake 2.6 patch 0, first using 64 bit IDs, then I changed to 32bits anf built again. The same link errors appe

Re: [CMake] CPACK installation path configuration

2008-07-23 Thread Yuri Timenkov
On Wednesday 23 July 2008 15:38:52 Johnson, Hans wrote: > Yuri, > > Thanks for your help. The problem was that I needed to set both > CPACK_PACKAGING_INSTALL_PREFIX and CPACK_PACKAGE_DEFAULT_LOCATION to get > the desired behavior. I'm still not sure how these two options interact to > produce t

Re: [CMake] make arguments

2008-07-23 Thread Christian Ehrlicher
> Von: Milan Dorak > I can't find in documentation or anywhere else, how can i pass argument > to make command. > I need 'make -j 3'. don't care if it's in CMakeLists.txt or CTest script. > Since when does cmake executes make directly? It's only creating makefiles for make... Christian -- GMX

Re: [CMake] CPACK_NSIS_CREATE_ICONS incorrect

2008-07-23 Thread Mike Arthur
On Tuesday 22 July 2008 19:05:21 you wrote: > For some reason for me CPACK_NSIS_CREATE_ICONS is set incorrectly when > using an NSIS installer. My application is in c:\Program > Files\Mendeley\Mendeley.exe but it tries to point the start menu shortcut > to c:\Program Files\Mendeley\bin\Mendeley.exe

[CMake] make arguments

2008-07-23 Thread Milan Dorak
I can't find in documentation or anywhere else, how can i pass argument to make command. I need 'make -j 3'. don't care if it's in CMakeLists.txt or CTest script. Thanks for any help ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/l

[CMake] Two differents packages in the same cmake project

2008-07-23 Thread David
Hello, My problem : I have a project composed from a client and a server. I would like to generate two differents packages (DEB in my case) with CPACK but I'm not sure if it's possible. When I try (for example with two differents projects name in CMakeList and two cpack configurations), I obtain o

Re: [CMake] can a dependency be added to a specific test (CXX Test)?

2008-07-23 Thread Yuri Timenkov
On Wednesday 23 July 2008 07:50:18 Edward Flanigan wrote: > I am trying to create a test. > > The traditional way uses the command : add_test (simpleTest executable) > I want to know if there is any way to add a dependency to a specific test? > CMake does not recognize simpleTest as a target. > >

[CMake] FindImageMagick Updated in CVS

2008-07-23 Thread Miguel A. Figueroa-Villanueva
On Sat, Jul 19, 2008 at 12:29 AM, Philip Lowman wrote: > On Sat, Jul 19, 2008 at 1:18 AM, Miguel A. Figueroa-Villanueva > <[EMAIL PROTECTED]> wrote: >> >> On Fri, Jul 18, 2008 at 11:06 PM, Philip Lowman wrote: >> > I'd like to seek approval to have the following CMake find modules added >> > to >>