[CMake] Target properties, dependencies and subdirs order?

2006-09-25 Thread Jeroen Janssen
Hi, I have a question on the evaluation/creation of target properties in relation with dependencies. Example: TestDll directory with interface/ and src/ TestExe directory with src/ TestExe has a dependency to TestDll (with add_dependency) Now I would like to add the interface direct

Re: [CMake] correct way to pass CMake path variables to ADD_DEFINITIONS?

2006-09-25 Thread Brad King
Wojciech Jarosz wrote: > I am writing a confidence test which needs to read some asset files. In > order to tell the test where these files are located I do the following > within the test's CMakeLists.txt: > ADD_DEFINITIONS(-DRB_DATA_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/\") > > Within the test code

Re: [CMake] Question about vars

2006-09-25 Thread Brad King
Joshua Blocher wrote: > I'm having trouble with variables, anytime i use a variable with > gtk+-2.0 (i.e. gtk+-2.0_CFLAGS comes up cmake chokes on it and splits > out (see below) is this because i have non-alphanumeric characters in > them. [snip] > syntax error, unexpected cal_SYMBOL, expecting }

Re: [CMake] Target properties, dependencies and subdirs order?

2006-09-25 Thread Brad King
Jeroen Janssen wrote: > Hi, > > I have a question on the evaluation/creation of target properties in > relation with dependencies. > > Example: > > TestDll directory with interface/ and src/ > TestExe directory with src/ > > TestExe has a dependency to TestDll (with add_dependency) >

Re: [CMake] Target properties, dependencies and subdirs order?

2006-09-25 Thread Alan W. Irwin
On 2006-09-25 15:18+0200 Jeroen Janssen wrote: Example: TestDll directory with interface/ and src/ TestExe directory with src/ TestExe has a dependency to TestDll (with add_dependency) [...] this only works when has TestDll before TestExe in the SUBDIRS section. If TestDll is after

[CMake] Finding libs/headers on MSYS/MinGW

2006-09-25 Thread Kai Sterker
Hi, I'm facing some troubles using cmake on a Windows environment with MSYS and MinGW. It's doing it's job on Linux and I'm getting close on OSX, but on Windows it is not even able to find the required libraries and associated header files, all compiled within MSYS and neatly installed to /usr/lo

RE: [CMake] UIC problem with QT4

2006-09-25 Thread Moreland, Kenneth
Because of many changes in the Qt build processes, the CMake commands for compiling against Qt4 have changed a bit from those for Qt3. For example, commands like QT_WRAP_UI have new QT4_WRAP_UI macros to handle the new Qt4 commands. I suggest taking a look at FindQt4.cmake to see more details on

Re: [CMake] UIC problem with QT4

2006-09-25 Thread Mike Jackson
Take a look at my posting from earlier this month: http://public.kitware.com/pipermail/cmake/2006-August/010432.html Mike Jackson On 9/25/06 3:42 PM, "Moreland, Kenneth" <[EMAIL PROTECTED]> wrote: > Because of many changes in the Qt build processes, the CMake commands > for compiling against Q

RE: [CMake] 3rd party modules

2006-09-25 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
Got it. Thank You. Now, there is another thing that I can't seem to find. If I have a Foo library with CMakeLists.txt: ADD_LIBRARY(Foo foo.cpp) then I have FooConfig.cmake for it: SET(FOO_LIBRARY @LIBRARY_OUTPUT_PATH@/@FOO_LIBRARY_NAME@) where @FOO_LIBRARY_NAME@ is

Re: [CMake] Finding libs/headers on MSYS/MinGW

2006-09-25 Thread Brandon J. Van Every
Kai Sterker wrote: A CMake compiled from MSYS (as opposed to cygwin) seems to be a native Windows App with limited knowledge of stuff like /usr/local. Data point: I use MinGW / MSYS as my primary build environment. I use a CMake that was compiled with Visual Studio .NET 2003, i.e. standard i

Re: [CMake] Finding libs/headers on MSYS/MinGW

2006-09-25 Thread Joshua Blocher
Hi, On all 3 platforms we use pkg-config which is available for win32 on the GTK+ for windows page. If you need any help let me know. Joshua L. Blocher verbalshadow On 9/25/06, Kai Sterker <[EMAIL PROTECTED]> wrote: Hi, I'm facing some troubles using cmake on a Windows environment with MSYS

Re: [CMake] Finding libs/headers on MSYS/MinGW

2006-09-25 Thread Kai Sterker
On 9/26/06, Brandon J. Van Every <[EMAIL PROTECTED]> wrote: > A CMake compiled from MSYS (as opposed to cygwin) seems to be > a native Windows App with limited knowledge of stuff like /usr/local. Data point: I use MinGW / MSYS as my primary build environment. I use a CMake that was compiled wi

Re: [CMake] Finding libs/headers on MSYS/MinGW

2006-09-25 Thread Christian Ehrlicher
Von: "Kai Sterker" <[EMAIL PROTECTED]> > On 9/26/06, Brandon J. Van Every <[EMAIL PROTECTED]> wrote: > > > In the meantime, you might consider using > > CMake "in the standard way" to get around your problems. > > Well, I can specify all those libs and headers cmake couldn't figure > out manuall

Re: [CMake] Finding libs/headers on MSYS/MinGW

2006-09-25 Thread Kai Sterker
On 9/26/06, Christian Ehrlicher <[EMAIL PROTECTED]> wrote: I still don't understand why msys is needed anyway. Maybe offtopic, but perhaps it helps to understand the way in which I intend to use cmake. The application I'm working on has a number of dependencies (libiconv, gettext, libxml2, fre