Re: [CMake] win32 rc files - or any other files besides cpp/cxx

2007-10-18 Thread Christian Ehrlicher
Mark Wyszomierski schrieb: Hi, I'm using cmake for a large project that has some win32 gui apps in it. In the main project folder I only include those sub projects if compiling for WIN32. That works fine. The win32 gui apps have a .rc file in a sub-folder named 'res'. How do you ask CMake to in

[CMake] CMake 2.5 - MinGW fails with NMake Mafiles

2007-10-18 Thread Gonzalo Garramuño
MinGW CMake also says it supports NMake Makefiles (actually, tons of formats which sounds super cool). After compiling a MinGW CMake, I tried using it to compile cmake again with "NMake Makefiles" and it also worked. But trying a 'NMake Makefiles' build on my project resulted in > cmake ..

[CMake] CMake2.5 - wrong default install location for mingw

2007-10-18 Thread Gonzalo Garramuño
Compiling CMake HEAD with mingw. After install, it defaulted to installing in $PROGRAMFILES/CMake, instead of /usr/local/ (ie. C:/msys/1.0/usr/local) incorrectly overwriting my MSVC version. -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E GeForce7300GT Kubuntu Edgy

Re: [CMake] make file for win32 MDI application

2007-10-18 Thread Gonzalo Garramuño
Mark Wyszomierski wrote: Hi, When the application you're building the makefile for is an MDI application, how do you; 1) Set the sub system to be: Windows (/SUBSYSTEM:WINDOWS) ADD_EXECUTABLE( myexe WIN32 ) linking to these libs in my MDI projects give produce a lot of linking error

[CMake] CMAKE 2.5 MinGW returns bad WIN32

2007-10-18 Thread Gonzalo Garramuño
I'm running FindOpenGL and FindGLUT on a mingw based compile, with MSYS Makefiles and CMAKE_CXX_COMPILER=g++. That is, a standard GNU build. FindOpenGL and FindGLUT fail to find the microsoft opengl32.lib and dll and the corresponding glut lib. The problem is that WIN32 returns false. It i

[CMake] make file for win32 MDI application

2007-10-18 Thread Mark Wyszomierski
Hi, When the application you're building the makefile for is an MDI application, how do you; 1) Set the sub system to be: Windows (/SUBSYSTEM:WINDOWS) in visual studio, this option is found under Project -> Linker -> System -> Sub System if not set, the MDI (or any other GUI interfac

Re: [CMake] Patch for Eclipse generator

2007-10-18 Thread Pau Garcia i Quiles
Quoting Pau Garcia i Quiles <[EMAIL PROTECTED]>: I forgot to say packages for Ubuntu Feisty and Gutsy for the latest CMake CVS with my patch already applied will be available in my PPA in a few hours: https://edge.launchpad.net/~pgquiles/+archive Hello, As I told yesterday, here comes a p

Re: [CMake] Marking a library dependency from within a library.

2007-10-18 Thread KSpam
Bill, Thanks for the clarification. This will simplify my build system a great deal! Justin On Thursday 18 October 2007 12:23:49 Bill Hoffman wrote: > The example is this: > add_library(libB) > add_library(libA) > target_link_libraries(libA libB) > add_executable(excC) > target_link_librareis(

[CMake] Patch for Eclipse generator

2007-10-18 Thread Pau Garcia i Quiles
Hello, As I told yesterday, here comes a patch for the Eclipse CDT4 generator available in the current CVS version of CMake. Although I have not extensively tested it, the works fine. In addition to the in-tree build which has always worked, this patch allows you to have 'myapp' and 'myap

Re: [CMake] Windows make VERBOSE=1?

2007-10-18 Thread Bill Hoffman
Gonzalo Garramuño wrote: I'm using cmake2.5 HEAD. I'm trying to get a verbose build out of it on Windows using NMake Makefiles, with: make VERBOSE=1 but all I get with that are lines like: C:\ARCHIV~1\MICROS~1.NET\Vc7\bin\cl.exe @C:/DOCUME~1/gga/CONFIG~1/Temp\nmFF.tmp I'm wondering if VE

[CMake] INCLUDE_DIRECTORIES and $(VCInstallDir)

2007-10-18 Thread Stefan Buschmann
Hi all, I'm trying to build a project that uses DirectX 9. To compile correctly, the include path order must be adjusted so that the Platform SDK is prefered over the DirectX include directories. This is done by setting the include directories to: $(VCInstallDir)PlatformSDK/include external

[CMake] win32 rc files - or any other files besides cpp/cxx

2007-10-18 Thread Mark Wyszomierski
Hi, I'm using cmake for a large project that has some win32 gui apps in it. In the main project folder I only include those sub projects if compiling for WIN32. That works fine. The win32 gui apps have a .rc file in a sub-folder named 'res'. How do you ask CMake to include those files in the resu

[CMake] Windows make VERBOSE=1?

2007-10-18 Thread Gonzalo Garramuño
I'm using cmake2.5 HEAD. I'm trying to get a verbose build out of it on Windows using NMake Makefiles, with: make VERBOSE=1 but all I get with that are lines like: C:\ARCHIV~1\MICROS~1.NET\Vc7\bin\cl.exe @C:/DOCUME~1/gga/CONFIG~1/Temp\nmFF.tmp I'm wondering if VERBOSE=1 can be made to wor

Re: [CMake] FindImageMagick: Rewrite to support all utilities.

2007-10-18 Thread Miguel A. Figueroa-Villanueva
On 10/14/07, Alex Neundorf wrote: > On Saturday 13 October 2007 07:17, Miguel A. Figueroa-Villanueva wrote: > > Hello, > > > > I've been assigned the task of maintaining the ImageMagick find > > module. As such, I made a rewrite to support the complete toolchain > > (i.e., all command line executab

Re: [CMake] Marking a library dependency from within a library.

2007-10-18 Thread Bill Hoffman
KSpam wrote: Bill, Yes, where you create libA, you add this: target_link_libraries(libA libB) CMake will automatically chain. Has this feature recently changed? I thought that adding "target_link_libraries(libA libB)" would explicitly link libB to libA. Often when I am static linking, I

Re: [CMake] Marking a library dependency from within a library.

2007-10-18 Thread KSpam
Bill, > Yes, where you create libA, you add this: > > target_link_libraries(libA libB) > > CMake will automatically chain. Has this feature recently changed? I thought that adding "target_link_libraries(libA libB)" would explicitly link libB to libA. Often when I am static linking, I do not w

[CMake] Project, dependendies and Dart2 questions

2007-10-18 Thread Félix C. Morency
Hi, I have a program A depending on two internal libraries, B and C. A, B and C are build by CMake script and can be built independantly (A that also build B and C, B only and C only). When generating VS8 solutions, A, B and C are separated into project in the IDE, which is good. If I can, I can

[CMake] including paths - basic

2007-10-18 Thread Mark Wyszomierski
Hi, I'm new to cmake, it looks great. Is it possible to include different paths conditionally, like: include_directories (${MY_PROJECT_SOURCE_DIR}/my_lib) IF (WIN32) include_directories (C:/my_stuff/lib/something) ELSE (WIN32) include_directories (/usr/lib/something) ENDIF (WIN32) Can you keep a

[CMake] compare ctest to dejagnu?

2007-10-18 Thread Juan Sanchez
Someone in my group is investigating dejagnu. I was wondering if anyone with experience in ctest and dejagnu has any thoughts on these two testing systems? Thanks, Juan ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmak

Re: [CMake] Trouble with CMake + Eclipse + SVN/CVS

2007-10-18 Thread Pau Garcia i Quiles
Quoting Pau Garcia i Quiles <[EMAIL PROTECTED]>: Quoting Eric Noulard <[EMAIL PROTECTED]>: 2007/10/17, Pau Garcia i Quiles <[EMAIL PROTECTED]>: [...] Is it possible to use CVS or SVN from Eclipse in a CMake-generated project in scenarios A or B? This is an Eclipse Team platform issue. You

Re: [CMake] build vcproj no mac

2007-10-18 Thread Riccardo Cohen
Thanks a lot for your answers Bill Hoffman wrote: Riccardo Cohen wrote: Thanks for your answer. On mac I cannot install visual studio, but I would like to generate (not compile) the vcproj file. CMake build files are not transferable from machine to machine. Users must have CMake installe

Re: [CMake] build vcproj no mac

2007-10-18 Thread Bill Hoffman
Riccardo Cohen wrote: Thanks for your answer. On mac I cannot install visual studio, but I would like to generate (not compile) the vcproj file. CMake build files are not transferable from machine to machine. Users must have CMake installed, and run it on each machine that the project is b

Re: [CMake] Marking a library dependency from within a library.

2007-10-18 Thread Christian Hoffmann
On Thursday 18 October 2007 13:47, Bill Hoffman wrote: > Josef Karthauser wrote: > > I have a library (libA), which depends upon another library (libB) for > > its implementation.I also have an executable (execC) which uses > > LibA. Is there an easy way of getting LibB added to the list of >

Re: [CMake] build vcproj no mac

2007-10-18 Thread Riccardo Cohen
Thanks for your answer. On mac I cannot install visual studio, but I would like to generate (not compile) the vcproj file. Gau wrote: Riccardo Cohen wrote: Hello I try to use cmake, and could generate a project for gcc on my mac, and for visual studio on my pc. But is it possible to generate

Re: [CMake] Marking a library dependency from within a library.

2007-10-18 Thread Bill Hoffman
Josef Karthauser wrote: I have a library (libA), which depends upon another library (libB) for its implementation.I also have an executable (execC) which uses LibA. Is there an easy way of getting LibB added to the list of dependencies, so what when I do Add_Executable(exeC) Tar

Re: [CMake] build vcproj no mac

2007-10-18 Thread Bill Hoffman
Riccardo Cohen wrote: Hello I try to use cmake, and could generate a project for gcc on my mac, and for visual studio on my pc. But is it possible to generate both from the map ccmake command ? I tried -G option and it did not work... Thanks for any information. No, CMake can only generate p

Re: [CMake] CMAKE_PROJECT_NAME

2007-10-18 Thread David Cole
Try "PROJECT_NAME" ... Where did you see it as "CMAKE_PROJECT_NAME"? On 10/18/07, Josef Karthauser <[EMAIL PROTECTED]> wrote: > > Isn't the value of CMAKE_PROJECT_NAME supposed to contain the name given > to the last PROJECT() call? It appears with the current version of > CMAKE that it gets th

Re: [CMake] Getting a list of all the variables.

2007-10-18 Thread David Cole
GET_CMAKE_PROPERTY(v VARIABLES) will fill the variable "v" with a list of the currently defined variables... "cmake --help-command GET_CMAKE_PROPERTY" yields: cmake version 2.4-patch 6 GET_CMAKE_PROPERTY Get a property of the CMake instance. GET_CMAKE_PROPERTY(VAR property)

[CMake] CMAKE_PROJECT_NAME

2007-10-18 Thread Josef Karthauser
Isn't the value of CMAKE_PROJECT_NAME supposed to contain the name given to the last PROJECT() call? It appears with the current version of CMAKE that it gets the value of the first call to PROJECT, and isn't subsequently updated. For example: CMakeLists.txt: Project(foo) MES

[CMake] Getting a list of all the variables.

2007-10-18 Thread Josef Karthauser
How do I get a list of all variables currently defined within a run of CMake? Is there any easy way of dumping all the variables and their values, at the end of a CMakeLists.txt file for instance? Joe ___ CMake mailing list CMake@cmake.org http://www.cm

[CMake] Marking a library dependency from within a library.

2007-10-18 Thread Josef Karthauser
I have a library (libA), which depends upon another library (libB) for its implementation.I also have an executable (execC) which uses LibA. Is there an easy way of getting LibB added to the list of dependencies, so what when I do Add_Executable(exeC) Target_Link_Libraries(exeC libA)

[CMake] build vcproj no mac

2007-10-18 Thread Riccardo Cohen
Hello I try to use cmake, and could generate a project for gcc on my mac, and for visual studio on my pc. But is it possible to generate both from the map ccmake command ? I tried -G option and it did not work... Thanks for any information. -- Très cordialement, Riccardo Cohen