[CMake] utility project are exclude from default build

2009-07-29 Thread Nicolas Slythe (Intern)
Why utility project are excluded from solution build on visual studio I tried to set EXCLUDE_FROM_DEFAULT_BUILD to 0 But the utility project is never build when I build the solution Is there a way to force utility project to be built with the visual studio solution thanks ___

[CMake] Problem with CMAKE and m file for Objective-c

2009-07-29 Thread reyman
Hello, I'm new on CMake, i have a project who compil with a simple Makefile, so i want to translate into a CMakeList. I have file extension .m and .h in my src folder, my compiler is GCC. When i want to compile, this is /usr/bin/c++ who launch and compile ... i don't understand why CMake doesn't r

[CMake] CheckIncludeFile, CheckIncludeFiles, CheckIncludeFileCXX

2009-07-29 Thread Pau Garcia i Quiles
Hello, What's the difference between CheckIncludeFile and CheckIncludeFiles ? Implementations are slightly different but they seem to perform the same exact check Also, why is there a CheckIncludeFileCXX instead of just having a language (C or CXX) parameter for CHECK_INCLUDE_FILE? I. e. "CHECK_I

Re: [CMake] Set compiler

2009-07-29 Thread Schoap D
2009/7/29 Michael Jackson > If you are in a "pure" msys environment you may wan to try: > > cmake -G "MSYS Makefiles" [path to build directory] Thanks, this works! Much appreciated! > > > or cmake -G "MinGW Makefiles" > if you are in MinGW command prompt ( like the one distributed with Qt)

[CMake] Developer's Training Week

2009-07-29 Thread Lisa Avila
Kitware is pleased to announce the next Developer's Training Week for VTK, ITK, ParaView and CMake, which will be held September 29 - October 2, 2009 in Clifton Park, NY. Course details are provided below and online at http://www.kitware.com/products/protraining.html. Early Registration ends Se

[CMake] set_property(TARGET bla PROPERTY LINK_INTERFACE_LIBRARIES "")

2009-07-29 Thread Mathieu Malaterre
Hi there, Just a quick question, let say I am working on a very large project with multiple libraries, is there a way to say that the default property of for all generated shared library is "" (empty string) ? Thanks -- Mathieu ___ Powered by www.kit

Re: [CMake] Qt, PrivateClass and not fount moc_xxx.cpp

2009-07-29 Thread John Drescher
On Wed, Jul 29, 2009 at 10:52 AM, Bill Hoffman wrote: > panter.dsd wrote: > >> >> CMake does not generate moc_XXX.cpp. When compiling the generated file >> moc_XXX.cxx, but I need the cpp. >> > I think you might want to not use #include with cpp when using Cmake, and > that should fix your problem.

Re: [CMake] Qt, PrivateClass and not fount moc_xxx.cpp

2009-07-29 Thread panter.dsd
On Wednesday 29 of July 2009 18:52:25 John Drescher wrote: > On Wed, Jul 29, 2009 at 10:48 AM, panter.dsd wrote: > > So how do I do? > > I would create a bug report for this with a small example (not your > whole application). > > In the past I just converted code like this to use a separate header

Re: [CMake] Set compiler

2009-07-29 Thread Michael Jackson
If you are in a "pure" msys environment you may wan to try: cmake -G "MSYS Makefiles" [path to build directory] or cmake -G "MinGW Makefiles" if you are in MinGW command prompt ( like the one distributed with Qt) _ Mike Jackson

Re: [CMake] Install command using Optional for Visual Studio 9 2008

2009-07-29 Thread David Cole
On Wed, Jul 29, 2009 at 8:03 AM, Anders Eriksson wrote: > > 1) Is there a way to create a build target equal to the install/fast target > that is available for the "Unix Makefiles" > generator which does not depend on all the other targets? > No. But you can do an "install/fast" equivalent withi

Re: [CMake] Set compiler

2009-07-29 Thread Bill Hoffman
David Cole wrote: If you just run cmake inside your msys shell and use -G "Unix Makefiles" it should all just work... Actually there are specific Msys generators as msys has some different path stuff. MSYS Makefiles or MinGW Makefiles. -Bill ___

Re: [CMake] Qt, PrivateClass and not fount moc_xxx.cpp

2009-07-29 Thread Bill Hoffman
panter.dsd wrote: CMake does not generate moc_XXX.cpp. When compiling the generated file moc_XXX.cxx, but I need the cpp. I think you might want to not use #include with cpp when using Cmake, and that should fix your problem. qt4_wrap_cpp( MOC_SOURCES ...) will put the list of moc

Re: [CMake] Set compiler

2009-07-29 Thread David Cole
If you just run cmake inside your msys shell and use -G "Unix Makefiles" it should all just work... On Wed, Jul 29, 2009 at 8:42 AM, schoappied wrote: > Hi, > > I want to use Cmake on Windows with mingw and msys. I want to use cmake in > the command line. How do I set the right compiler etc. to

Re: [CMake] Qt, PrivateClass and not fount moc_xxx.cpp

2009-07-29 Thread John Drescher
On Wed, Jul 29, 2009 at 10:48 AM, panter.dsd wrote: > So how do I do? I would create a bug report for this with a small example (not your whole application). In the past I just converted code like this to use a separate header for the private class as a workaround. -- John M. Drescher _

Re: [CMake] Qt, PrivateClass and not fount moc_xxx.cpp

2009-07-29 Thread panter.dsd
So how do I do? -- PanteR ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Foll

Re: [CMake] Qt, PrivateClass and not fount moc_xxx.cpp

2009-07-29 Thread John Drescher
On Wed, Jul 29, 2009 at 10:27 AM, panter.dsd wrote: > On Wednesday 29 of July 2009 18:19:38 Michael Jackson wrote: >> You probably need to add an "include_directories()" command that >> points to where ever the moc_XXX.cpp file can be found. >> >> >>

Re: [CMake] Qt, PrivateClass and not fount moc_xxx.cpp

2009-07-29 Thread John Drescher
On Wed, Jul 29, 2009 at 10:39 AM, John Drescher wrote: > On Wed, Jul 29, 2009 at 10:27 AM, panter.dsd wrote: >> On Wednesday 29 of July 2009 18:19:38 Michael Jackson wrote: >>> You probably need to add an "include_directories()" command that >>> points to where ever the moc_XXX.cpp file can be foun

Re: [CMake] Qt, PrivateClass and not fount moc_xxx.cpp

2009-07-29 Thread panter.dsd
On Wednesday 29 of July 2009 18:19:38 Michael Jackson wrote: > You probably need to add an "include_directories()" command that > points to where ever the moc_XXX.cpp file can be found. > > > _ > Mike Jackson mike.jack...@blue

Re: [CMake] Qt, PrivateClass and not fount moc_xxx.cpp

2009-07-29 Thread panter.dsd
On Wednesday 29 of July 2009 18:28:30 Bill Hoffman wrote: > More likely the QT4_GENERATE_MOC macro is not being called. It might > help if you gave a small example of your CMake code. > > > -Bill This is my program http://gitorious.org/panthercommander -- PanteR

Re: [CMake] Qt, PrivateClass and not fount moc_xxx.cpp

2009-07-29 Thread Bill Hoffman
Michael Jackson wrote: You probably need to add an "include_directories()" command that points to where ever the moc_XXX.cpp file can be found. More likely the QT4_GENERATE_MOC macro is not being called. It might help if you gave a small example of your CMake code. -Bill _

Re: [CMake] Qt, PrivateClass and not fount moc_xxx.cpp

2009-07-29 Thread Michael Jackson
You probably need to add an "include_directories()" command that points to where ever the moc_XXX.cpp file can be found. _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net

[CMake] Qt, PrivateClass and not fount moc_xxx.cpp

2009-07-29 Thread panter.dsd
Hello, all. I'm from Russia and I very bad speak english, sorry. I'm programming on Qt4 and I'll want compiling my program with CMake, but have a problem. In my program I'm using Private classes and I must writing at end of cpp file #include "moc_XXX.cpp". When my program compiling with the qma

Re: [CMake] OPTION-like combobox

2009-07-29 Thread Pau Garcia i Quiles
On Wed, Jul 29, 2009 at 1:55 PM, Brad King wrote: > Pau Garcia i Quiles wrote: >> Hello, >> >> Is there anything like OPTION but which allows to select one value >> from a limited list of values (a combobox). Something like: >> >> OPTION( CRYPTOBACKEND "Select a cryptography backend" VALUES "OpenSS

[CMake] Set compiler

2009-07-29 Thread schoappied
Hi, I want to use Cmake on Windows with mingw and msys. I want to use cmake in the command line. How do I set the right compiler etc. to use gcc? Thanks in advance, ~D ___ Powered by www.kitware.com Visit other Kitware open-source projects at http

[CMake] Install command using Optional for Visual Studio 9 2008

2009-07-29 Thread Anders Eriksson
I posted this question a few weeks ago but didn't get any replies. I've notice that most questions get answered so I'll post it again. If it's badly written please give some feedback. Thanks /Anders Hi, I am using CMake 2.6-patch 0 on Windows XP and I am generating build files for "Vi

Re: [CMake] OPTION-like combobox

2009-07-29 Thread Brad King
Pau Garcia i Quiles wrote: > Hello, > > Is there anything like OPTION but which allows to select one value > from a limited list of values (a combobox). Something like: > > OPTION( CRYPTOBACKEND "Select a cryptography backend" VALUES "OpenSSL" > "LibTomCrypt" "LibDES" DEFAULT "OpenSSL" ) There i