Re: [CMake] HowTo build one Linux binary set for all platforms?

2006-04-18 Thread Matt England
At 4/18/2006 11:56 AM, Brad King wrote: I think it's a Mandrake 10 box. There is a bit of a trick needed for CMake due to support for loaded commands. We link statically against everything but libc and libdl. In order to work with the system libc on every other machine you need to build wit

Re: [CMake] Using QT with ITK

2006-04-18 Thread Filipe Sousa
On Tuesday 18 April 2006 20:04, Julien Marchand wrote: > Hi! > > I have to do a program integrating both Qt and ITK. Therefore, I have > to use Cmake. However, I'm having trouble building my cmakelists. More > precisely, I have trouvle with Qt_WRAP_CPP and QT_WRAP_UI. > > I get a "Attempt to add cu

[CMake] Using QT with ITK

2006-04-18 Thread Julien Marchand
Hi! I have to do a program integrating both Qt and ITK. Therefore, I have to use Cmake. However, I'm having trouble building my cmakelists. More precisely, I have trouvle with Qt_WRAP_CPP and QT_WRAP_UI. I get a "Attempt to add custom rule to output "moc_pline.cxx" which already has a custom rule

[CMake] Build/Link with static libs

2006-04-18 Thread Christian Lang
Hi, I want to link a target (executable) against some static (not installed) libs (e.g. "./foo.a"). How can I do this? "TARGET_LINK_LIBRARIES" does not work. I cannot use "CMAKE_EXE_LINKER_FLAGS" either, because the flags appear before the object files, leading to link failure for dependency

Re: [CMake] HowTo build one Linux binary set for all platforms?

2006-04-18 Thread Brad King
Matt England wrote: At 4/18/2006 09:43 AM, Brad King wrote: We have a least-common-denominator Linux system. We build the needed system libraries statically (such as curses). We build our own gcc using the --disable-shared configure script option to avoid getting a shared C++ library. Look

Re: [CMake] HowTo build one Linux binary set for all platforms?

2006-04-18 Thread Matt England
At 4/18/2006 09:43 AM, Brad King wrote: We have a least-common-denominator Linux system. We build the needed system libraries statically (such as curses). We build our own gcc using the --disable-shared configure script option to avoid getting a shared C++ library. Look in the Utilities/Rele

Re: [CMake] how to manage different library names for release/debug ?

2006-04-18 Thread Brad King
Silvano Imboden wrote: I am writing (maybe another J) some cmake code in order to compile the latest wxWindows using Cmake. The library names should use this form wx{platform}{version}{unicode}{debug}_{toolkit}.[lib|dll] In CVS CMake (and soon in the upcoming 2.4 release) you can use SET_TA

Re: [CMake] Specifying ObjectFile for Visual Studio 7

2006-04-18 Thread Brad King
Phillip Hellewell wrote: Hi all, I need help building a project with two filenames with the same name (they are in different subdirectories). Unfortunately, since VS builds all object files into the same directory, one of the object files will get clobbered and in addition I get a LNK4042 er

Re: [CMake] HowTo build one Linux binary set for all platforms?

2006-04-18 Thread Brad King
Matt England wrote: At 4/13/2006 10:42 AM, Matt England wrote: I see that CMake does provide a "single-binary" set for all Linux platforms: http://www.cmake.org/files/v2.2/cmake-2.2.3-x86-linux.tar.gz How is this done? After a few days' posting and research, some references I found follow

Re: [CMake] Problem compiling with cmake 2.2.3

2006-04-18 Thread Brad King
Betsubetsu wrote: I found out that the file CMakeFiles/IsMapVariables.dir/depend.make generated by version 2.2.3 contains the lines below while the same file generated by version 2.2.2 generated only the first 2 lines (the commented ones)! I noticed that the depend.make file is filled in with t

[CMake] Visual Studio problem with many/long additional library paths

2006-04-18 Thread Kristian Nielsen
A cmakelists.txt file of mine contains the following: ADD_EXECUTABLE(mysqld ../sql-common/client.c ...) TARGET_LINK_LIBRARIES(mysqld heap myisam myisammrg mysys yassl zlib dbug yassl taocrypt strings vio regex wsock32) TARGET_LINK_LIBRARIES(mysqld archive) TARGET_LINK_LIBRAR

Re: [CMake] Qt and cmake - generating files order

2006-04-18 Thread lemmel
> Add the ui_ .h file as part of the sources for reconin. Did you mean lines such as : SET(QtApp_SRCS src/main.cpp src/GUI/InheritedDialog/MainWindow.cpp ui_FenetrePrincipale.h) or SET(QtApp_SRCS src/main.cpp src/GUI/InheritedDialog/MainWindow.cpp src/GUI/UIfiles/FenetrePrincipale.ui) or ADD