Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Robert Dailey
On Tue, Dec 23, 2008 at 2:40 PM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > > > On Dec 23, 2008, at 1:05 PM, Robert Dailey wrote: > > Mike Jackson wrote >>> >> > I am just thinking out loud here so if I am totally off the mark just >>> ignore. >>> >>> So the problem is including /fo

Re: [CMake] ADD_CUSTOM_COMMAND, PRE_BUILD

2008-12-23 Thread Pau Garcia i Quiles
On Wed, Dec 24, 2008 at 12:43 AM, Bill Hoffman wrote: > Pau Garcia i Quiles wrote: >> >> On Tue, Dec 23, 2008 at 9:38 PM, Andrey Sploshnov >> wrote: >>> >>> From documentation to CMake 2.6.x: >>> >>> "Note that the PRE_BUILD option is only supported on Visual Studio 7 or >>> later. For all other

Re: [CMake] ADD_CUSTOM_COMMAND, PRE_BUILD

2008-12-23 Thread Bill Hoffman
Pau Garcia i Quiles wrote: On Tue, Dec 23, 2008 at 9:38 PM, Andrey Sploshnov wrote: From documentation to CMake 2.6.x: "Note that the PRE_BUILD option is only supported on Visual Studio 7 or later. For all other generators PRE_BUILD will be treated as PRE_LINK." I'm using Visual Studio 9, wh

Re: [CMake] ADD_CUSTOM_COMMAND, PRE_BUILD

2008-12-23 Thread Pau Garcia i Quiles
On Tue, Dec 23, 2008 at 9:38 PM, Andrey Sploshnov wrote: > From documentation to CMake 2.6.x: > > "Note that the PRE_BUILD option is only supported on Visual Studio 7 or > later. For all other generators PRE_BUILD will be treated as PRE_LINK." I'm using Visual Studio 9, which is newer than VS7, s

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Michael Jackson
On Dec 23, 2008, at 1:05 PM, Robert Dailey wrote: Mike Jackson wrote I am just thinking out loud here so if I am totally off the mark just ignore. So the problem is including /foo/bar-d or /foo/bar for debug and release. For a release build there is the -NDEBUG definition and for Deb

Re: [CMake] ADD_CUSTOM_COMMAND, PRE_BUILD

2008-12-23 Thread Andrey Sploshnov
>From documentation to CMake 2.6.x: "Note that the PRE_BUILD option is only supported on Visual Studio 7 or later. For all other generators PRE_BUILD will be treated as PRE_LINK." What are you actually trying to do? If you want to perform some actions before actually build the target, use of add

[CMake] ADD_CUSTOM_COMMAND, PRE_BUILD

2008-12-23 Thread Pau Garcia i Quiles
Hello, I'm trying ADD_CUSTOM_COMMAND(TARGET ... PRE_BUILD) but it does not work here. This is how I'm using it: ADD_CUSTOM_COMMAND(TARGET thetarget PRE_BUILD COMMAND touch ${CMAKE_CURRENT_BINARY_DIR}/helloworld

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Bill Lorensen
I'm not sure if this will be useful, but there is info on the wxwidgets wiki regarding the use of cmake http://wiki.wxwidgets.org/CMake Bill On Tue, Dec 23, 2008 at 1:05 PM, Robert Dailey wrote: > On Tue, Dec 23, 2008 at 11:10 AM, Michael Jackson > wrote: >> >> n Dec 23, 2008, at 11:56 AM, Bil

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Robert Dailey
On Tue, Dec 23, 2008 at 11:10 AM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > n Dec 23, 2008, at 11:56 AM, Bill Hoffman wrote: > > Robert Dailey wrote: >> >> For debug: C:\foo\bar-d >>> For release: C:\foo\bar >>> Note that the text "Debug" or "Release" is not used in the include pat

[CMake] Building Qt app

2008-12-23 Thread kafou nmento
Hi all! I'm building a Qt based app with CMake using MinGW generator. I set this in my CMakeLists.txt : SET(QT_USE_QTDESIGNER 1) SET(QT_USE_QTMAIN 1) SET(QT_USE_QTUITOOLS 1) SET(QT_USE_QTWEBKIT 1)   When building I errors like below :   C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/win

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread cyril_wobow
Bill Hoffman a écrit : Robert Dailey wrote: For debug: C:\foo\bar-d For release: C:\foo\bar Note that the text "Debug" or "Release" is not used in the include path, so simply using CFG_INTDIR would not work I don't think (Unless I'm missing something again). This is why in CMake I need to do

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Michael Jackson
n Dec 23, 2008, at 11:56 AM, Bill Hoffman wrote: Robert Dailey wrote: For debug: C:\foo\bar-d For release: C:\foo\bar Note that the text "Debug" or "Release" is not used in the include path, so simply using CFG_INTDIR would not work I don't think (Unless I'm missing something again). This

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Bill Hoffman
Robert Dailey wrote: For debug: C:\foo\bar-d For release: C:\foo\bar Note that the text "Debug" or "Release" is not used in the include path, so simply using CFG_INTDIR would not work I don't think (Unless I'm missing something again). This is why in CMake I need to do something like this:

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Robert Dailey
On Tue, Dec 23, 2008 at 10:23 AM, Bill Hoffman wrote: > Robert Dailey wrote: > >> Why I need this feature is irrelevant, the important thing is that I need >> the feature. I know a couple of other people who've posted on various other >> mailing lists that have asked for this as well. >> >> Howeve

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Bill Hoffman
Robert Dailey wrote: Why I need this feature is irrelevant, the important thing is that I need the feature. I know a couple of other people who've posted on various other mailing lists that have asked for this as well. However, if you must know, I need this mainly because of wxWidgets. wxWidg

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Robert Dailey
Why I need this feature is irrelevant, the important thing is that I need the feature. I know a couple of other people who've posted on various other mailing lists that have asked for this as well. However, if you must know, I need this mainly because of wxWidgets. wxWidgets has a setup.h file tha

Re: [CMake] Delayed build of shared lib when building static and shared

2008-12-23 Thread Gavin Beatty
On Tue, Dec 23, 2008 at 12:21 PM, Gavin Beatty wrote: > Hello, > > My project builds using a proj_static and proj_shared target and > changing the OUTPUT_NAME property on each. > > _Only_ on SLES 10sp1 have I run into the problem where the shared > library is not build after a make. A second make

[CMake] Delayed build of shared lib when building static and shared

2008-12-23 Thread Gavin Beatty
Hello, My project builds using a proj_static and proj_shared target and changing the OUTPUT_NAME property on each. _Only_ on SLES 10sp1 have I run into the problem where the shared library is not build after a make. A second make builds the so. Here is a test case: project(test) cmake_minimum_

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread cyril_wobow
Philip Lowman a écrit : On Mon, Dec 22, 2008 at 11:27 PM, Robert Dailey > wrote: On Mon, Dec 22, 2008 at 9:23 PM, Bill Hoffman mailto:bill.hoff...@kitware.com>> wrote: Investigate CMAKE_CFG_INTDIR. I believe for Visual Studio outp