Re: [CMake] CPack DEB Packaging: Automate dependency resolution

2008-11-05 Thread Eric Noulard
2008/11/5 Mathieu Malaterre [EMAIL PROTECTED]: On Tue, Nov 4, 2008 at 8:16 PM, Alexander Neundorf [EMAIL PROTECTED] wrote: On Tuesday 04 November 2008, Mathieu Malaterre wrote: You really should be using Debian utilities. Not unless you are on a debian machine. Technically nothing should

Re: [CMake] Writing platform check

2008-11-05 Thread Bill Hoffman
Eric Noulard wrote: 2008/11/5 Rajika Kumarasiri [EMAIL PROTECTED]: hello every body, I was trying to generate and use a config.h file from a very simple config.h.in file for cross compilation of my software, cmake gave me the following error. I was reading the guide here[1]. CMake Error:

[CMake] [CPACK][NSIS] Installing files in My Documents folder

2008-11-05 Thread Nicolas Desprès
Hi cpackers, I'm looking for a way to tell cpack NSIS generator (version 2.6.2) to install some files in the users My Documents folder. For instance, I would like to install sample projects in a directory there. If there is no way to do so, I will post a request features on the tracker. Best

Re: [CMake] CMake generated build number?

2008-11-05 Thread Mike Arthur
On Wednesday 05 November 2008 14:00:18 Blezek, Daniel J. wrote: I'd like to have a monotonically increasing build number auto generated by CMake. This would be for official builds of the software, so we could track algorithm changes / results. I'd also be happy if CMake could pull the latest

[CMake] Getting if custom target is set

2008-11-05 Thread Alexander.Camek
Hi folks, I have got a project split up into a lot of single project. So in my ROOR dir I have got a CMakeLists.txt which defines a master PROJECT(). Each subdirectory added by the master project adds in its CMakeLists.txt its own PROJECT() in order to build alone. Now I add a new command

[CMake] CMake generated build number?

2008-11-05 Thread Blezek, Daniel J.
Hi, I'd like to have a monotonically increasing build number auto generated by CMake. This would be for official builds of the software, so we could track algorithm changes / results. I'd also be happy if CMake could pull the latest SVN revision number. This would go in a -D during the

Re: [CMake] CMake generated build number?

2008-11-05 Thread J.S.Wijnhout
Hi, Just a thought: Why don't you use the date and time? The compiler can provide those for you. We use two static functions for this: const char *GetBuildDate () { return __DATE__; } const char *GetBuildTime () { return __TIME__; } Of course if you don't do a clean build, then the date

Re: [CMake] CMake generated build number?

2008-11-05 Thread Bill Hoffman
Blezek, Daniel J. wrote: Hi Mike, This only works during the CMake configure process, not during the build. So it's possible for this information to be out of date. I think I'll have to make a bogus target to grab the info from Subversion, which is not what I had wanted to do. You should

Re: [CMake] CMake generated build number?

2008-11-05 Thread Blezek, Daniel J.
Bill, This is great and it works. I have several sub-projects in our main source code, but I can't seem to share the ADD_CUSTOM_COMMAND amongst them. Is there some way to do this once for all projects? Thanks, -dan -Original Message- From: Bill Hoffman [mailto:[EMAIL PROTECTED]

Re: [CMake] CMake generated build number?

2008-11-05 Thread Bill Hoffman
Blezek, Daniel J. wrote: Bill, This is great and it works. I have several sub-projects in our main source code, but I can't seem to share the ADD_CUSTOM_COMMAND amongst them. Is there some way to do this once for all projects? You might want to create a custom target that your other

[CMake] CMake 2.6.2 can't find QtCore

2008-11-05 Thread Serhii Piddubchak
Hello, I'm using OpenSUSE 11.0 and trying to build software that uses QT. I have QT and QT-devel packages installed but CMake says it Can't find QtCore. I've posted a question about this to a project's forum here: http://www.hedgewars.org/forum/viewtopic.php?id=648 They said it could be a CMake

Re: [CMake] CMake 2.6.2 can't find QtCore

2008-11-05 Thread clinton
What does qmake -query QT_INSTALL_LIBS give you? Do you even have a /usr/lib/libQtCore.so? Or something like that? Clint On Wednesday 05 November 2008 9:36:45 am Serhii Piddubchak wrote: Hello, I'm using OpenSUSE 11.0 and trying to build software that uses QT. I have QT and QT-devel packages

Re: [CMake] How to find GetPrerequisites.cmake ?

2008-11-05 Thread Stephen Collyer
David Cole wrote: This line:INSTALL(SCRIPT ${CMAKE_MODULE_PATH}/GetPrerequisites.cmake) doesn't really do anything at make install time. GetPrerequisites.cmake just defines a bunch of functions. You have to include it and then *call* some of the functions for it to do anything useful.

Re: [CMake] Cannot recompile CMake CVS from scratch?

2008-11-05 Thread Eric Noulard
2008/11/5 Eric Noulard [EMAIL PROTECTED]: I recently re-organised my CMake build trees and now I get the following error: uic: File generated with too recent version of Qt Designer (4.0 vs. 3.3.8b) What should I do in order to fix it? Forget about that I did have mixed-up qt3/qt4 install.

Re: [CMake] [CPACK][NSIS] Installing files in My Documents folder

2008-11-05 Thread David Cole
There is a way to do so, but it's not as easy as you'll want it to be... :-) You would have to provide your own NSIS.template.in file that does NSIS stuff directly. You can start out with a copy of the one in the CMake Modules directory, and then put it in a place in your own source tree, and

Re: [CMake] CMake 2.6.2 can't find QtCore

2008-11-05 Thread Serhii Piddubchak
[EMAIL PROTECTED]:/var/media/games qmake -query QT_INSTALL_LIBS /usr/lib [EMAIL PROTECTED]:/var/media/games ls -lh /usr/lib/libQtCore* -rw-r--r-- 1 root root 687 2008-09-19 19:27 /usr/lib/libQtCore.la -rw-r--r-- 1 root root 633 2008-09-19 19:27 /usr/lib/libQtCore.prl lrwxrwxrwx 1 root root 18

Re: [CMake] CMake 2.6.2 can't find QtCore

2008-11-05 Thread clinton
Your /usr/lib/libQtCore.so is a broken softlink to a file that doesn't exist. Something is wrong with your Qt installation. Clint On Wednesday 05 November 2008 12:53:01 pm Serhii Piddubchak wrote: [EMAIL PROTECTED]:/var/media/games qmake -query QT_INSTALL_LIBS /usr/lib [EMAIL

Re: [CMake] [CPACK][NSIS] Installing files in My Documents folder

2008-11-05 Thread Nicolas Desprès
Hi David, Thanks for the tricks. I've never thought about it before. I'll try to do my best to make it as much general as I can. Cheers, Nico On Wed, Nov 5, 2008 at 8:46 PM, David Cole [EMAIL PROTECTED] wrote: There is a way to do so, but it's not as easy as you'll want it to be... :-) You

Re: [CMake] view execute_process command

2008-11-05 Thread James Bigler
On Fri, Oct 31, 2008 at 4:15 AM, Mike Arthur [EMAIL PROTECTED] wrote: On Thursday 30 October 2008 20:41:36 James Bigler wrote: Is it possible to view the actual command run by an execute_process command? I'm trying to debug a command that isn't getting the right set of quotes or something,

[CMake] Recursive dependencies and static libraries

2008-11-05 Thread Jed Brown
I hope clarifies the core problem I rambled on about in my last message. Suppose I am building project Foo which depends on libA which has an optional dependency on libB. It looks like everyone just does find_library (A_LIBRARY A) and calls it good. If libA is a shared library, the linker

Re: [CMake] pkgconfig and cross compiling

2008-11-05 Thread Alexander Neundorf
On Wednesday 05 November 2008, Hendrik Sattler wrote: ... Maybe it was an old patch? Yes, wrong file. Next try. Alex Index: UsePkgConfig.cmake === RCS file: /cvsroot/CMake/CMake/Modules/UsePkgConfig.cmake,v retrieving revision

Re: [CMake] pkgconfig and cross compiling

2008-11-05 Thread Alexander Neundorf
On Wednesday 05 November 2008, Alan W. Irwin wrote: On 2008-11-04 20:57+0100 Alexander Neundorf wrote: On Tuesday 04 November 2008, Alan W. Irwin wrote: ... I don't get the behaviour you describe for my version of pkg-config (0.22-1). For that version of pkg-config, if I point

Re: [CMake] CMake generated build number?

2008-11-05 Thread Alexander Neundorf
On Wednesday 05 November 2008, [EMAIL PROTECTED] wrote: Hi, Just a thought: Why don't you use the date and time? The compiler can provide those for you. We use two static functions for this: const char *GetBuildDate () { return __DATE__; } const char *GetBuildTime () { return

Re: [CMake] Recursive dependencies and static libraries

2008-11-05 Thread Csaba Halász
On Wed, Nov 5, 2008 at 9:29 PM, Jed Brown [EMAIL PROTECTED] wrote: Here is an extremely simple test case that is broken on every platform where libtiff is a static library. http://59a2.org/files/cmake-tiff.tar.gz CMake configures successfully, but the build fails with lots of unresolved

Re: [CMake] assembly files with masm in vs2005 64bit

2008-11-05 Thread Alexander Neundorf
On Wednesday 05 November 2008, Bill Hoffman wrote: Alexander Neundorf wrote: ... What do you think about adding the files which add support for masm (using the Makefile generators) without having it supported by the VS generators yet ? Can I commit or don't you want to have that as long

Re: [CMake] Recursive dependencies and static libraries

2008-11-05 Thread Jed Brown
On Wed 2008-11-05 23:02, Csaba Halász wrote: Yes, I have just run into this very problem (see my earlier mail about libtiff) I just made some try-compile tests to check for known possible dependencies. I hoped somebody with more cmake experience could offer some insight, but didn't get any

Re: [CMake] Getting if custom target is set

2008-11-05 Thread Philip Lowman
On Wed, Nov 5, 2008 at 9:25 AM, [EMAIL PROTECTED] wrote: Hi folks, I have got a project split up into a lot of single project. So in my ROOR dir I have got a CMakeLists.txt which defines a master PROJECT(). Each subdirectory added by the master project adds in its CMakeLists.txt its own

Re: [CMake] Recursive dependencies and static libraries

2008-11-05 Thread Bill Hoffman
Jed Brown wrote: On Wed 2008-11-05 23:02, Csaba Halász wrote: Yes, I have just run into this very problem (see my earlier mail about libtiff) I just made some try-compile tests to check for known possible dependencies. I hoped somebody with more cmake experience could offer some insight, but

Re: [CMake] CMake 2.6.2 can't find QtCore

2008-11-05 Thread Serhii Piddubchak
Yes, it was something wrong with the packages. I've downgraded qt and qt-devel to 4.4.0 versions. And CMake found Qt. Thanks for the support. 2008/11/5 [EMAIL PROTECTED]: Perhaps you updated the Qt package to 4.4.3, but left the qt-development package at 4.4.0. The Linux distros I'm familiar