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

2007-03-19 Thread Alexander Neundorf
Hi, Von: Hendrik Sattler <[EMAIL PROTECTED]> > Hi, > > I have three questions regarding cmake. > > 1. > 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

RE: [CMake] CMAKE_INCLUDE_CURRENT_DIR?

2007-03-19 Thread Kishore, Jonnalagadda (IE10)
> Kishore, Jonnalagadda (IE10) wrote: > > > > If I understand you correctly, you mean to say that in the top level > > CMakeLists.txt, if I SET(CMAKE_INCLUDE_CURRENT_DIR ON) and > > INCLUDE_DIRECTORY(.) then all other subdirectories I add will all > > automatically include the other directories? >

Re: [CMake] CMAKE_INCLUDE_CURRENT_DIR?

2007-03-19 Thread Brandon J. Van Every
Kishore, Jonnalagadda (IE10) wrote: If I understand you correctly, you mean to say that in the top level CMakeLists.txt, if I SET(CMAKE_INCLUDE_CURRENT_DIR ON) and INCLUDE_DIRECTORY(.) then all other subdirectories I add will all automatically include the other directories? This however, is not

Re: [CMake] CMAKE_INCLUDE_CURRENT_DIR?

2007-03-19 Thread Brandon J. Van Every
Kishore, Jonnalagadda (IE10) wrote: I just checked again and confirm that the information was already there under the section "Various Options" http://www.cmake.org/Wiki/CMake_Useful_Variables#Various_Options Now it is also added under "Environment Variables" http://www.cmake.org/Wiki/CMake_

RE: [CMake] CMAKE_INCLUDE_CURRENT_DIR?

2007-03-19 Thread Kishore, Jonnalagadda (IE10)
> On Friday 16 March 2007 17:56:46 Brandon J. Van Every wrote: > > Kishore, Jonnalagadda (IE10) wrote: > > > But then, despite setting the value I had to put in > > > INCLUDE_DIRECTORIES(.) > > > > And I was brief because I don't know if there any caveats on how it can > > be used. Maybe you foun

RE: [CMake] CMAKE_INCLUDE_CURRENT_DIR?

2007-03-19 Thread Kishore, Jonnalagadda (IE10)
> > > Thanks for your reply. I did read the wiki that basically said the > same > > > thing. > > > > That's 'cuz I wrote it after it was posted here.  :-) > > That's funny! I am pretty sure I thought of using it after reading about > it on one of the pages... ;-) I just checked again and confirm

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

2007-03-19 Thread Christian Ehrlicher
Hendrik Sattler schrieb: 2. Why is there no support for windres. The documentation is pretty unclear about what to do with .rc files. Again, writing a module that is possible but somehow just duplicates effort (you even need that to get an application icon in Windows). This should be detected

[CMake] Qt4 translation files and windres and devcpp

2007-03-19 Thread Hendrik Sattler
Hi, I have three questions regarding cmake. 1. 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 logical. Anything planned?

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

2007-03-19 Thread Matthew Woehlke
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_ALL ${name}.c) TARGE

[CMake] compiling for static/shared simultaneously?

2007-03-19 Thread Philip Lowman
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. From the point of view of Linux I've never had a problem using code compiled with -fPIC with a static link (excep

Re: [CMake] [resolved] Debug build compiles and links, but Release build fails to link?

2007-03-19 Thread Jean-Sébastien Guay
Hello Pascal, So that in debug mode, it produces some functions for the .cpp you were mentioning, and they are optimized out in the release build. Why the linker would see these is unclear to me, because on Linux, it would produce a private symbol in the object file, hence not visible to other