[CMake] CMP0005 warning as default

2009-04-29 Thread Dieter Oberkofler
The warning offers a lot of information on how to disable but is it really intended to get the following warning by default? -- CMake Warning (dev) at cmake/Definitions.cmake:51 (ADD_DEFINITIONS): Policy CMP0005 is not set: Preprocessor definition values are now escaped automatically.

[CMake] Using cmake first time..

2009-04-29 Thread Usman Ajmal
Hi, I am not clear with this CMakeLists.txt as to how to create it automatically because i don't know the conventions related to it. I have a project named test.pro having following files treemap.cpp treemap.h main.cpp Libraries i am using are qt4, qt3support. The treemap.cpp comes from KDE sou

Re: [CMake] Double builds required in XCode w/CMake when changing UI code in QtDesigner

2009-04-29 Thread Bill Hoffman
Daniel Blezek wrote: Hi Mike, Here is my actual add_executable call. add_executable ( Sumatra ${GUI_TYPE} ${SumatraSource} ${SumatraUISHeaders} ${SumatraMOCSource} ${SumatraResources} ) I may try swizzling the order around, Thanks, -dan Sounds like a bug. If you could create a very small

[CMake] How to configure project to use wxWidgets stc module

2009-04-29 Thread Trent Lillehaugen
I have a project that uses wxWidgets and in particular the stc module (in the contrib folder). How do I specify the stc module for wxWidgets? I tried the following the line in my CMakeLists.txt: find_package(wxWidgets REQUIRED stc core base) However, I get the following error: Could NOT find w

Re: [CMake] OS X Bundle building -- adding external DYLIB files?

2009-04-29 Thread kent williams
I was able to use this example to successfully build a standalone application. Many thanks! One thing: I had to set EXECUTABLE_OUTPUT_PATH in my CMakeLists.txt file -- otherwise when it built the install scripts that variable was empty and it wasn't finding my application at all. And with CMake 2

Re: [CMake] Double builds required in XCode w/CMake when changing UI code in QtDesigner

2009-04-29 Thread Daniel Blezek
Hi Mike, Here is my actual add_executable call. add_executable ( Sumatra ${GUI_TYPE} ${SumatraSource} ${SumatraUISHeaders} ${SumatraMOCSource} ${SumatraResources} ) I may try swizzling the order around, Thanks, -dan On 4/29/09 3:17 PM, "Michael Jackson" wrote: > You might try the following

Re: [CMake] Double builds required in XCode w/CMake when changing UI code in QtDesigner

2009-04-29 Thread Michael Jackson
You might try the following: add_executable ( Sumatra ${SumatrSources} ${SumatraUISHeaders} ) and see what happens. Here is a snippet from one of my own projects: # -- Run MOC and UIC on the necessary files QT4_ADD_RESOURCES( Generated_RC_SRCS ${ModelEditor_RCS} ) # this will run uic on .

Re: [CMake] header-only project for VS2005

2009-04-29 Thread Hicham Mouline
> -Original Message- > From: Tyler Roscoe [mailto:ty...@cryptio.net] > Sent: 29 April 2009 19:50 > To: Hicham Mouline > Cc: cmake@cmake.org > Subject: Re: [CMake] header-only project for VS2005 > > On Wed, Apr 29, 2009 at 07:27:05PM +0100, Hicham Mouline wrote: > > I use cmake to generate

Re: [CMake] Visual Studio project file reloading in Vista

2009-04-29 Thread Tyler Roscoe
On Wed, Apr 29, 2009 at 09:23:15PM +0200, Jesper Eskilson wrote: > * Open VS2005 + a solution generated by CMake > * Modify one of the CMakeLists.txt files. > * Rebuild solution > * Observed behavior: ZERO_CHECK reruns CMake, but VS2005 does not detect > that the project files has changed until t

Re: [CMake] header-only project for VS2005

2009-04-29 Thread Tyler Roscoe
On Wed, Apr 29, 2009 at 08:33:56PM +0100, Hicham Mouline wrote: > The thing is, this is the dir structure for e.g. > > Lib1 (library with source files) > + cmakelists.txt > + > Lib2 (header only, contains template functions, no source files) > + > + > > If I add the headers to Lib1' cmakelists.t

[CMake] Double builds required in XCode w/CMake when changing UI code in QtDesigner

2009-04-29 Thread Daniel Blezek
Sorry if this has been discussed before, but I couldn¹t find anything in Google. When building with XCode and Qt, I have to build twice when I change my .ui files in QtDesigner. Apparently the build order is wrong? The first build re-generates the ui_*.h files, but doesn¹t trigger the dependenci

[CMake] Visual Studio project file reloading in Vista

2009-04-29 Thread Jesper Eskilson
Hi, I'm having trouble getting the automatic project file reloading in Visual Studio 2005 to work when running under Vista (Home Premium 64-bit). Reproduce: * Open VS2005 + a solution generated by CMake * Modify one of the CMakeLists.txt files. * Rebuild solution * Observed behavior: ZERO_CHE

Re: [CMake] header-only project for VS2005

2009-04-29 Thread Tyler Roscoe
On Wed, Apr 29, 2009 at 07:27:05PM +0100, Hicham Mouline wrote: > I use cmake to generate a VS2005 solution as well as linux/g++ makefiles. > I have a directory containing headers only and subdirs also with headers > only, > However I wish to display 1 project for that directory, and filters 1 for

[CMake] header-only project for VS2005

2009-04-29 Thread Hicham Mouline
Hello, I use cmake to generate a VS2005 solution as well as linux/g++ makefiles. I have a directory containing headers only and subdirs also with headers only, However I wish to display 1 project for that directory, and filters 1 for each of the subdirs. There is nothing to build for that dir, but

Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-04-29 Thread Bill Hoffman
James Bigler wrote: Thanks for the suggestion. word-at-point works better than my hand rolled code. Here's the updated version. I also fixed a slight annoyance where if the help command output was short enough it would print the outout to both the help buffer and the minibuffer. I'm also

[CMake] Disable linker / only build object files

2009-04-29 Thread Tyler Roscoe
I have a fairly complex library with a bunch of small pieces scattered throughout subdirectories. Each subdirectory has its own CMakeLists.txt. This is nice because the list of .cpp files for each subdirectory is right there in the subdirectory, and because these subdirectories behave just like a

Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-04-29 Thread James Bigler
Thanks for the suggestion. word-at-point works better than my hand rolled code. Here's the updated version. I also fixed a slight annoyance where if the help command output was short enough it would print the outout to both the help buffer and the minibuffer. I'm also open to additional suggest

Re: [CMake] Invoking the install target with components

2009-04-29 Thread Alexander Neundorf
On Wednesday 29 April 2009, Adolfo Rodríguez wrote: > Hello, > > I'm using the COMPONENT option of the install command, and found myself not > knowing how to invoke the installation of only one component. Browsing the > list's archives, I found a 2006 post [1] that suggests doing the following: > >

Re: [CMake] foreach: bug or feature?

2009-04-29 Thread Marcel Loose
Hi Andreas, The thing is that I was hoping that I would not have to check explicitly for any missing arguments to DEPENDS. But of course it is very wise to check and report this error. It was more that I was baffled by the behaviour of foreach(). I'll have to work around this feature ;-) Best reg

[CMake] Can't get incremental linking turned off...

2009-04-29 Thread Dick Munroe
I'm building fortran executables that run on a web server. The occasional bug gets hit and I want to have traceback information available so that I can take a guess at what went wrong. In order to get traceback information in, I have to have incremental linking turned off which doesn't see

Re: [CMake] foreach: bug or feature?

2009-04-29 Thread Andreas Pakulat
On 29.04.09 14:58:00, Marcel Loose wrote: > Hi Andreas, > > Seems we disagree about the intuitiveness of the API. Maybe I've done > too much C/C++ programming ;-) Hmm, I'm doing mostly C++ as well :) > I stumbled upon this problem while I was trying to parse the input > arguments to a macro(add_

Re: [CMake] foreach: bug or feature?

2009-04-29 Thread Marcel Loose
Hi Andreas, Seems we disagree about the intuitiveness of the API. Maybe I've done too much C/C++ programming ;-) I stumbled upon this problem while I was trying to parse the input arguments to a macro(add_package _name). This macro can be used as follows: add_package(name [version] [DEPENDS depen

Re: [CMake] foreach: bug or feature?

2009-04-29 Thread Andreas Pakulat
On 29.04.09 13:56:12, Marcel Loose wrote: > Hi all, > > foreach(cnt RANGE 3 1) > message(STATUS "${cnt}") > endforeach(cnt RANGE 3 1) > > produces the output > -- 3 > -- 2 > -- 1 > > Apparently, CMake decides to count backward whenever stop > start. > > I find this a little counter-intuitive;

[CMake] foreach: bug or feature?

2009-04-29 Thread Marcel Loose
Hi all, foreach(cnt RANGE 3 1) message(STATUS "${cnt}") endforeach(cnt RANGE 3 1) produces the output -- 3 -- 2 -- 1 Apparently, CMake decides to count backward whenever stop > start. I find this a little counter-intuitive; counting now starts at stop and stops at start (confusing isn't it).

Re: [CMake] cpack, both debug and release in win32

2009-04-29 Thread David Cole
Are you using Visual Studio on Windows? Do you care if the solution is portable to other build systems? What you want to do is possible, but probably not very easy. The problem is that CMake assumes you will build/install/package everything for either a Debug build or a Release build. (In make fi

Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-04-29 Thread Martin Apel
Hi James, your version for showing documentation is surely much nicer than mine. One minor tip: Instead of your function cmake-find-word you could use the function word-at-point coming from the package thingatpt, which does exactly, what you need. This package is part of the current Emacs distribu

[CMake] Invoking the install target with components

2009-04-29 Thread Adolfo Rodríguez
Hello, I'm using the COMPONENT option of the install command, and found myself not knowing how to invoke the installation of only one component. Browsing the list's archives, I found a 2006 post [1] that suggests doing the following: make preinstall && cmake -DCOMPONENT=foo -P cmake_install.cmake

Re: [CMake] cpack, both debug and release in win32

2009-04-29 Thread Anders Backman
When using INSTALL its possible to first build with release and then debug into the same target directory, but with PACKAGE this is not possible. First I build with release I get only release libraries into an installer (running under windows using NSIS) second, if I build with debug, I get a new o