[CMake] Set prefix/suffix globally?

2007-03-20 Thread Kishore, Jonnalagadda (IE10)
Is it possible to set the prefix and suffix to "lib" and ".a" for all libraries and ".elf" suffix to all executables? As mentioned in an earlier mail, I am having trouble with the executable trying to link to libraries with .lib suffix. Warm regards, Kishore __

RE: [CMake] cmake skips assembly files

2007-03-20 Thread Kishore, Jonnalagadda (IE10)
> > Assembly files explicitly given as source files for a target are > > completely ignored. From google searches, it seems to be a known issue > > and the solution lies with adding custom commands. > > > > I am not familiar with adding custom commands. And thus have assembly > > files assembled be

Re: [CMake] trying to modify preprocessor statements on same source file (probs with SET_SOURCE_FILES_PROPERTIES & ADD_DEFINITIONS)

2007-03-20 Thread Philip Lowman
Philip Lowman wrote: > I'm trying to facilitate compiling the same source file once with a > STATIC_BUILD preprocessor statement defined to 1 and once with it > defined to 0. I can't seem to figure out a way to do this, however. Nevermind, I found a way to do this using the COMPILE_FLAGS option t

Re: [CMake] compiling for static/shared simultaneously?

2007-03-20 Thread Philip Lowman
Eric Noulard wrote: 2007/3/19, Philip Lowman <[EMAIL PROTECTED]>: I noticed when using ADD_LIBRARY to compile both static and shared simultaneously that CMake will compile the source code twice once with -fPIC (for shared build) and once without. [...] Is this even possible to do within CMake

[CMake] trying to modify preprocessor statements on same source file (probs with SET_SOURCE_FILES_PROPERTIES & ADD_DEFINITIONS)

2007-03-20 Thread Philip Lowman
Hi, I'm trying to facilitate compiling the same source file once with a STATIC_BUILD preprocessor statement defined to 1 and once with it defined to 0. I can't seem to figure out a way to do this, however. It appears that the only options I have which are ADD_DEFINITIONS and SET_SOURCE_FILE

Re: [CMake] Compile .c as c++ - VS2005

2007-03-20 Thread Filipe Sousa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ben Ratzlaff wrote: > I have found that if I rename my .c files to .C then cmake does not emit > the XML in the .vsproj to change the build mode. .C is a c++ file name extension. - -- Filipe Sousa -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (

Re: [CMake] Compile .c as c++ - VS2005

2007-03-20 Thread Ben Ratzlaff
I have found that if I rename my .c files to .C then cmake does not emit the XML in the .vsproj to change the build mode. On 3/20/07, Ben Ratzlaff <[EMAIL PROTECTED]> wrote: It did not work for me I have also tried: SET (CMAKE_C_SOURCE_FILE_EXTENSIONS "") SET (CMAKE_CXX_SOURCE_FILE_EXT

Re: [CMake] Compile .c as c++ - VS2005

2007-03-20 Thread Filipe Sousa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ben Ratzlaff wrote: > When creating a visual studio 2005 project, I need to be able to compile > .c files as a c++ (/FP switch). Is there any way to achieve this outside > of renaming the files? does it work with SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /F

[CMake] Compile .c as c++ - VS2005

2007-03-20 Thread Ben Ratzlaff
When creating a visual studio 2005 project, I need to be able to compile .c files as a c++ (/FP switch). Is there any way to achieve this outside of renaming the files? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Qt4 translation files and windres and devcpp

2007-03-20 Thread Hendrik Sattler
Am Dienstag 20 März 2007 08:49 schrieb Alexander Neundorf: > > Although there is a good module for QT4, it is incomplete. Qt also comes > > with the tools lupdate and lrelease but there are not macros for them. I > > wrote two (one for each tool) but having this in FindQt4.cmake seems > > more logi

[CMake] Re: ADD_DEPENDENCIES: "non-existent target"??

2007-03-20 Thread Matthew Woehlke
Bill Hoffman wrote: Matthew Woehlke wrote: Bill Hoffman wrote: OK, this is a bug that will be fixed in 2.4.7. It is already in the branch in CVS, but there is no official release yet. If you can build from source, you can check out with -r CMake-2-4, to get the branch source code. If that do

Re: [CMake] CMAKE_INCLUDE_CURRENT_DIR?

2007-03-20 Thread Brandon J. Van Every
Pascal Fleury wrote: So it will in effect "automatically add the current source dir and current binary dir to the include directories in every directory" as the doc says. However, the *current* directory has a different value when cmake is processing project/src/CMakeLists.txt than when proce

Re: [CMake] Re: ADD_DEPENDENCIES: "non-existent target"??

2007-03-20 Thread Bill Hoffman
Matthew Woehlke wrote: Bill Hoffman wrote: OK, this is a bug that will be fixed in 2.4.7. It is already in the branch in CVS, but there is no official release yet. If you can build from source, you can check out with -r CMake-2-4, to get the branch source code. If that does not work for yo

[CMake] Re: ADD_DEPENDENCIES: "non-existent target"??

2007-03-20 Thread Matthew Woehlke
Bill Hoffman wrote: Matthew Woehlke wrote: (For some reason, your reply is not showing up on gmane :-(.) It should be there now. Yup, it finally showed... an hour later. :-) CMake 2.4.6. I was able to achieve the effect I want with ADD_SUBDIRECTORY (bummer that not taking multiple subdir

RE: [CMake] LINK_LIBRARIES() does not respect SUFFIX/PREFIX

2007-03-20 Thread Kishore, Jonnalagadda (IE10)
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Kishore, Jonnalagadda (IE10) > Sent: Wednesday, March 21, 2007 1:28 AM > To: cmake@cmake.org > Subject: [CMake] LINK_LIBRARIES() does not respect SUFFIX/PREFIX > > My setup: > > Project/CMakeLists.tx

[CMake] LINK_LIBRARIES() does not respect SUFFIX/PREFIX

2007-03-20 Thread Kishore, Jonnalagadda (IE10)
My setup: Project/CMakeLists.txt: ADD_SUBDIRECTORY(dir) LINK_LIBRARIES(mylib) ADD_EXECUTABLE(myexec main.c) Project/dir/CMakeLists.txt: ADD_LIBRARY(mylib lib.c) SET_TARGET_PROPERTIES(mylib PROPERTIES PREFIX li

Re: [CMake] Re: ADD_DEPENDENCIES: "non-existent target"??

2007-03-20 Thread Bill Hoffman
Matthew Woehlke wrote: (For some reason, your reply is not showing up on gmane :-(.) It should be there now. CMake 2.4.6. I was able to achieve the effect I want with ADD_SUBDIRECTORY (bummer that not taking multiple subdirs, although it would be trivial to macro-ize that) by removing EXCL

[CMake] Re: ADD_DEPENDENCIES: "non-existent target"??

2007-03-20 Thread Matthew Woehlke
(Trying again as this bounced...) Bill Hoffman wrote: Matthew Woehlke wrote: Matthew Woehlke wrote: Matthew Woehlke wrote: I have a project with some Doxygen doc that has examples. I want to add a non-default target to build the examples. I tried this: src/CMakeLists.txt: ADD_CUSTOM_TARGET(

Re: [CMake] Re: ADD_DEPENDENCIES: "non-existent target"??

2007-03-20 Thread Bill Hoffman
Matthew Woehlke wrote: Matthew Woehlke wrote: Matthew Woehlke wrote: I have a project with some Doxygen doc that has examples. I want to add a non-default target to build the examples. I tried this: src/CMakeLists.txt: ADD_CUSTOM_TARGET(examples) src/examples/CMakeLists.txt: MACRO(ADD_EXAMPL

Re: [CMake] CMake qmake debian and winxp

2007-03-20 Thread Filipe Sousa
[EMAIL PROTECTED] wrote: > Hello, > > I am discovering CMake and have ported a qmake Qt4 project to CMake. > > I was successful in doing so with Debian GNU/Linux and when I went to winxp > (Mingw32) I found the following: I had to patch to prevent a segmentation fault (linux qt 4.2.3 gcc 4.1.1

RE: [CMake] cmake skips assembly files

2007-03-20 Thread Kishore, Jonnalagadda (IE10)
> Assembly files explicitly given as source files for a target are > completely ignored. From google searches, it seems to be a known issue > and the solution lies with adding custom commands. > > I am not familiar with adding custom commands. And thus have assembly > files assembled before build

Re: [CMake] How to "exclude" dependencies

2007-03-20 Thread Filipe Sousa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 dieter oberkofler wrote: > I have finally migrated a rather large project to CMake and really like it > but still have a few open issues, that I hope to solve with your help. > > Here comes the first ones: > > 1) Is there a way to limit the dependenc

Re: [CMake] EXECUTE_PROCESS - I can't copy files on Windows

2007-03-20 Thread Filipe Sousa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vitor Vasconcelos Araujo Silva wrote: > Hello all, > > I'm experiencing a problem in EXECUTE_PROCESS command. > > My test set needs some image files to execute. On Linux, it works fine > with "make test" because I use the sam

[CMake] Re: ADD_DEPENDENCIES: "non-existent target"??

2007-03-20 Thread Matthew Woehlke
Matthew Woehlke wrote: Matthew Woehlke wrote: I have a project with some Doxygen doc that has examples. I want to add a non-default target to build the examples. I tried this: src/CMakeLists.txt: ADD_CUSTOM_TARGET(examples) src/examples/CMakeLists.txt: MACRO(ADD_EXAMPLE name) ADD_EXECUTAB

[CMake] Does CMake generate UNICODE prj files for VS2005?

2007-03-20 Thread Luca Cappa
Hello all, does CMake allow the creation of a UNICODE project file for VisualStudio 2005? Precisely i need that the application does not define _MBCS symbol, but the _UNICODE and UNICODE ones, or that the character set is not "Use Multi-Byte Character Set" but instead it is "Use Unicode Cha

[CMake] CMAKE_COMPILER_IS_GNUCC_RUN and its equivalent

2007-03-20 Thread Kishore, Jonnalagadda (IE10)
As I may have mentioned before, I am cross compiling and so far i seem to be doing OK. To enable cross compiling I have the macro MACRO(ENABLE_CROSSCOMPILE) SET (CMAKE_SKIP_COMPATIBILITY_TESTS 1) SET (CMAKE_C_COMPILER_WORKS 1) SET (CMAKE_CXX_COMPILER_WORKS 1) SET (

[CMake] cmake skips assembly files

2007-03-20 Thread Kishore, Jonnalagadda (IE10)
Assembly files explicitly given as source files for a target are completely ignored. From google searches, it seems to be a known issue and the solution lies with adding custom commands. I am not familiar with adding custom commands. And thus have assembly files assembled before building a target.

[CMake] Re: ADD_DEPENDENCIES: "non-existent target"??

2007-03-20 Thread Matthew Woehlke
Matthew Woehlke wrote: I have a project with some Doxygen doc that has examples. I want to add a non-default target to build the examples. I tried this: src/CMakeLists.txt: ADD_CUSTOM_TARGET(examples) src/examples/CMakeLists.txt: MACRO(ADD_EXAMPLE name) ADD_EXECUTABLE(${name} EXCLUDE_FROM_

[CMake] CMAKE cache after CMakeList.txt is modified

2007-03-20 Thread Kishore, Jonnalagadda (IE10)
When and under what conditions are the cache variable read? In the top level CMakeLists.txt of my project I have the following lines; IF(NOT ARCH) MESSAGE(STATUS "Setting ARCH to x86") SET(ARCH "x86" CACHE STRING "Choose the architecture, options are: ${SUPPORTED_ARCHS

[CMake] CMake dashboards, Mac OS X Universal Binaries, and running tests in Rosetta

2007-03-20 Thread Sean McBride
Hi all, As you may know, a Universal Binary on Mac OS X is an executable that contains both PowerPC and Intel object code. Ordinarily, when you launch a process the OS runs the PPC code on PPC machines and the Intel code on Intel machines. However, Intel machines can also run PPC code via a behi

[CMake] EXECUTE_PROCESS - I can't copy files on Windows

2007-03-20 Thread Vitor Vasconcelos Araujo Silva
Hello all, I'm experiencing a problem in EXECUTE_PROCESS command. My test set needs some image files to execute. On Linux, it works fine with "make test" because I use the same directory to source code and to build. On Windows (Visual Studio) the file is built in the

[CMake] How to "exclude" dependencies

2007-03-20 Thread dieter oberkofler
I have finally migrated a rather large project to CMake and really like it but still have a few open issues, that I hope to solve with your help. Here comes the first ones: 1) Is there a way to limit the dependencies that CMake builds by for example excluding directories and limit the level of re

[CMake] CMake qmake debian and winxp

2007-03-20 Thread listes . rusconi
Hello, I am discovering CMake and have ported a qmake Qt4 project to CMake. I was successful in doing so with Debian GNU/Linux and when I went to winxp (Mingw32) I found the following: 1) I could build the project without a single warning; 2) I could run the executable; 3) I could use some fun

Re: [CMake] compiling for static/shared simultaneously?

2007-03-20 Thread Eric Noulard
2007/3/19, Philip Lowman <[EMAIL PROTECTED]>: I noticed when using ADD_LIBRARY to compile both static and shared simultaneously that CMake will compile the source code twice once with -fPIC (for shared build) and once without. [...] Is this even possible to do within CMakeLists.txt files witho

Re: [CMake] CMAKE_INCLUDE_CURRENT_DIR?

2007-03-20 Thread Pascal Fleury
On Tuesday 20 March 2007 10:00:58 Kishore, Jonnalagadda (IE10) wrote: > > So by that you mean that every folder where a CMakeLists.txt is > processed, includes itself in the search path but not the other folders > where the other CMakeLists.txt were processed!? That's my understanding, yes. > I

RE: [CMake] CMAKE_INCLUDE_CURRENT_DIR?

2007-03-20 Thread Kishore, Jonnalagadda (IE10)
> On Tuesday 20 March 2007 07:07:35 Kishore, Jonnalagadda (IE10) wrote: > > > Kishore, Jonnalagadda (IE10) wrote: > > This is now a little confusing especially, when the description says " > > automatically add CMAKE_CURRENT_SOURCE_DIR and CMAKE_CURRENT_BINARY_DIR > > to the include directories _in

Re: [CMake] CMAKE_INCLUDE_CURRENT_DIR?

2007-03-20 Thread Pascal Fleury
On Tuesday 20 March 2007 07:07:35 Kishore, Jonnalagadda (IE10) wrote: > > Kishore, Jonnalagadda (IE10) wrote: > This is now a little confusing especially, when the description says " > automatically add CMAKE_CURRENT_SOURCE_DIR and CMAKE_CURRENT_BINARY_DIR > to the include directories _in every dir