Re: [CMake] Writing a custom Find*.cmake file for Pantheios

2012-07-12 Thread Rolf Eike Beer
Am Freitag, 13. Juli 2012, 02:41:50 schrieb Philipp Berger: > Hello everybody, > > I'm relatively new to CMake, but managed to learn everything I needed, > up until now. > For a software project in C++ we want to use Pantheios ( > http://www.pantheios.org ) as logging f

[CMake] Set C compiler flags but not linker flags

2012-07-12 Thread Roland Schulz
Hi, if I set compiler flags using CMAKE_C_FLAGS these flags are also added to the linker flags for C executables and libraries. How can I set compiler flags without those same flags also appended to the linker flags? In this specific case I would like to add "-fopenmp" to the compiler but do not

[CMake] Writing a custom Find*.cmake file for Pantheios

2012-07-12 Thread Philipp Berger
Hello everybody, I'm relatively new to CMake, but managed to learn everything I needed, up until now. For a software project in C++ we want to use Pantheios ( http://www.pantheios.org ) as logging framework. Sadly, there is no FindPantheios.cmake file readily available,

Re: [CMake] add additional lib

2012-07-12 Thread Yixun Liu
I use VTK5.8 enabling Qt. The missing lib is QVTK. Thanks. On Thu, Jul 12, 2012 at 3:51 PM, Bill Lorensen wrote: > Which lib is missing. There should be no VTK-related libs missing. What > version of VTK are you using? > > On Thu, Jul 12, 2012 at 12:30 PM, Yixun Liu wrote: > >> Hi, >> I am us

Re: [CMake] Xcode without 'command line tools' & xcrun & CMake

2012-07-12 Thread David Cole
On Thu, Jul 12, 2012 at 4:55 PM, Sean McBride wrote: > Hi all, > > Nowadays, Xcode is distributed as a standalone .app instead of an > installer that copies files all over the place. As a consequence of this, > nothing gets installed at /usr/bin/make, /usr/bin/cc, etc. > > Optionally, one can ins

Re: [CMake] Cross-compilation for windows on Darwin with nighlty build fails

2012-07-12 Thread Claus Klein
I found a way, but now the CMAKE_EXECUTABLE_SUFFIX is not empty? /opt/local/bin/cmake -G "Unix Makefiles" \ -DCMAKE_C_COMPILER=/opt/local/bin/i386-mingw32-gcc - DCMAKE_CXX_COMPILER=/opt/local/bin/i386-mingw32-g++ \ -DCMAKE_SYSTEM_NAME=Windows-GNU -DCMAKE_INSTALL_PREFIX="C:/usr" \ --

[CMake] Xcode without 'command line tools' & xcrun & CMake

2012-07-12 Thread Sean McBride
Hi all, Nowadays, Xcode is distributed as a standalone .app instead of an installer that copies files all over the place. As a consequence of this, nothing gets installed at /usr/bin/make, /usr/bin/cc, etc. Optionally, one can install a separate 'command line tools' package that places things

[CMake] Two toolchains simultaneously within the same project?

2012-07-12 Thread Ingolf Steinbach
Hi, is it possible to use two different toolchains within the same project? This is what I want to achieve: Most of the project uses a cross-compilation toolchain, so I'd call cmake with the appropriate CMAKE_TOOLCHAIN_FILE settings for the cross compiler. There is however one subdirectory which

[CMake] Cross-compilation for windows on Darwin with nighlty build fails

2012-07-12 Thread Claus Klein
I tried with the current nightly cmake binary to cross compile with mingw tools on Darwin. But it fails and I have no right idea what goes wrong. First, the rc compile was not found: + cmake -G 'Unix Makefiles' -DCMAKE_C_COMPILER=i386-mingw32-gcc - DCMAKE_CXX_COMPILER=i386-mingw32-g++ -DCMAK

Re: [CMake] add additional lib

2012-07-12 Thread Bill Lorensen
Which lib is missing. There should be no VTK-related libs missing. What version of VTK are you using? On Thu, Jul 12, 2012 at 12:30 PM, Yixun Liu wrote: > Hi, > I am using > # Find VTK > FIND_PACKAGE(VTK REQUIRED) > IF(VTK_FOUND) > INCLUDE(${VTK_USE_FILE}) > ENDIF(VTK_FOUND) > > VTK_LIBRARIES

Re: [CMake] add additional lib

2012-07-12 Thread John Drescher
On Thu, Jul 12, 2012 at 2:31 PM, Mateusz Loskot wrote: > On 12 July 2012 18:44, Yixun Liu wrote: >> BTW, do you know how to set CMakeList to make it produce a window-based >> application rather than a console-based application? > http://www.cmake.org/pipermail/cmake/2008-March/020577.html John -

Re: [CMake] add additional lib

2012-07-12 Thread Mateusz Loskot
On 12 July 2012 18:44, Yixun Liu wrote: > BTW, do you know how to set CMakeList to make it produce a window-based > application rather than a console-based application? I'm sorry, but I'm not sure what you mean. You asked about adding extra libs to linker. I neither have idea how it's relevant to

Re: [CMake] find dynamic libs

2012-07-12 Thread Andreas Pakulat
Hi, On Thu, Jul 12, 2012 at 6:12 PM, Yixun Liu wrote: > Hi, > I am using FIND_PACKAGE(Qt4 REQUIRED) in the CMakeLists to find Qt libs. > QT_LIBRARIES gives me QtGui, QtSql and QtCore, which are static libs. > How do you know that? Whats the actual content of the variable? Which platform are you

Re: [CMake] add additional lib

2012-07-12 Thread Mateusz Loskot
On 12 July 2012 17:30, Yixun Liu wrote: > Hi, > I am using > # Find VTK > FIND_PACKAGE(VTK REQUIRED) > IF(VTK_FOUND) > INCLUDE(${VTK_USE_FILE}) > ENDIF(VTK_FOUND) > > VTK_LIBRARIES does not include one lib. > > TARGET_LINK_LIBRARIES(ProjecctName ${VTK_LIBRARIES} > > How to add this lib into the

[CMake] add additional lib

2012-07-12 Thread Yixun Liu
Hi, I am using # Find VTK FIND_PACKAGE(VTK REQUIRED) IF(VTK_FOUND) INCLUDE(${VTK_USE_FILE}) ENDIF(VTK_FOUND) VTK_LIBRARIES does not include one lib. TARGET_LINK_LIBRARIES(ProjecctName ${VTK_LIBRARIES} How to add this lib into the variable VTK_LIBRARIES or TARGET_LINK_LIBRARIES? Thank you.

[CMake] find dynamic libs

2012-07-12 Thread Yixun Liu
Hi, I am using FIND_PACKAGE(Qt4 REQUIRED) in the CMakeLists to find Qt libs. QT_LIBRARIES gives me QtGui, QtSql and QtCore, which are static libs. How to force FIND_PACKAGE to find the dynamic libs: QtGui4, QtSql4 and QtCore4? Thank you in advance! Yixun -- Powered by www.kitware.com Visit othe

Re: [CMake] New version of FindGit.cmake compatible with FindSubversion.cmake

2012-07-12 Thread Mateusz Loskot
On 12 July 2012 14:24, Jean-Christophe Fillion-Robin wrote: > I also think contributing this module back to CMake would be great. +1 > This has been discuss on the list [1], few things need to be fixed and as > discussed documentation updated. Thanks for pointing that. > The module could also

Re: [CMake] New version of FindGit.cmake compatible with FindSubversion.cmake

2012-07-12 Thread Jean-Christophe Fillion-Robin
Hi Folks, I also think contributing this module back to CMake would be great. This has been discuss on the list [1], few things need to be fixed and as discussed documentation updated. The module could also probably be split into: FindGit.cmake and GitInfo.cmake (or similar name) First, we coul

Re: [CMake] Double quotes being removed Windows removing compiler flags

2012-07-12 Thread Andreas Mohr
Hi, On Thu, Jul 12, 2012 at 08:20:50AM +0200, François Best wrote: > I was able to fix my problem by adding the replacement of "\\\"" (escaped > quote) before the actual replacement of the non-escaped quote in the > generator. > > Here is the patch: > > diff --git a/Source/cmVisualStudioGenerato

Re: [CMake] New version of FindGit.cmake compatible with FindSubversion.cmake

2012-07-12 Thread Mateusz Loskot
On 12 July 2012 07:52, Rolf Eike Beer wrote: > Mateusz Loskot wrote: >> On 12 July 2012 00:24, Aashish Chaudhary >> wrote: >> > >> > I don't have both files in front of me. Whats the difference between >> > the one in the slicer and once in the CMake? >> >> CMake's current version [1] defines: >

Re: [CMake] An updated cross-platform FindGlew.cmake module

2012-07-12 Thread Benjamin Eikel
Hello Carlo, Am Donnerstag, 12. Juli 2012, 09:18:10 schrieb Carlo Nicolini: > Hi you all, I'm trying to find an updated, simple to use and effective > FindGlew.cmake module, because I've to include and link Glew ( > http://glew.sourceforge.net/index.html ) in my project, which needs to be > compil

[CMake] An updated cross-platform FindGlew.cmake module

2012-07-12 Thread Carlo Nicolini
Hi you all, I'm trying to find an updated, simple to use and effective FindGlew.cmake module, because I've to include and link Glew ( http://glew.sourceforge.net/index.html ) in my project, which needs to be compiled on win32, linux and osx. Can somebody help me? -- Powered by www.kitware.com Vi