Re: [CMake] CMake Digest, Vol 75, Issue 121

2010-07-31 Thread YongWu Choi
포ㅓ퓨ㅡ튜ㅓㅏㅠ러ㅣ류라뉴유루 륲뎓ㅠㅍnnñq NOthing to do Studio SteppenWolf's Company amug...@gmail.com 2010. 7. 30. 20:50 cmake-requ...@cmake.org 작성: Send CMake mailing list submissions to cmake@cmake.org To subscribe or unsubscribe via the World Wide

[CMake] How to write CMakeLists.txt for Qt4 when Q_OBJECT in xxx.cpp file

2010-07-31 Thread 1+1=2
Hi,everyone I am new to cmake. I don't know how to write a CMakeList.txt file if Q_OBJECT in a xxx.cpp source file. for example, A very simple qt4 program like this. // filename main.cpp #include QtGui/QApplication #include QtGui/QWidget class Widget:public QWidget { Q_OBJECT public:

Re: [CMake] How to write CMakeLists.txt for Qt4 when Q_OBJECT in xxx.cpp file

2010-07-31 Thread Michael Jackson
PROJECT(mytest) CMAKE_MINIMUM_REQUIRED(VERSION 2.6) FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui REQUIRED) INCLUDE(${QT_USE_FILE}) SET(pro_SOURCESmain.cpp) QT4_WRAP_CPP( Generated_MOC_SRCS main.cpp ) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) ADD_EXECUTABLE(mytest ${pro_SOURCES}

Re: [CMake] How to write CMakeLists.txt for Qt4 when Q_OBJECT in xxx.cpp file

2010-07-31 Thread 1+1=2
Thanks for your answer. when use QT4_WRAP_CPP( Generated_MOC_SRCS main.cpp ), moc_main.cxx will be generated. then I use #include moc_main.cxx instead of #include main.moc but ${Generated_MOC_SRCS} can not be added to ADD_EXECUTABLE. otherwise moc_main.cxx will be compiled too. This works.

Re: [CMake] How to write CMakeLists.txt for Qt4 when Q_OBJECT in xxx.cpp file

2010-07-31 Thread John Drescher
when use QT4_WRAP_CPP( Generated_MOC_SRCS main.cpp ),  moc_main.cxx will be generated. then I use #include moc_main.cxx instead of #include main.moc but ${Generated_MOC_SRCS}  can not be added to  ADD_EXECUTABLE. otherwise moc_main.cxx will be compiled too. I am confused at the problem. I

Re: [CMake] Help using CMake Expat in Windows

2010-07-31 Thread Michael Jackson
On Fri, Jul 30, 2010 at 7:15 PM, John Drescher dresche...@gmail.com wrote: I have created a very simple CMake file (I am a newbie) that works wonderfully in Linux, but am having problems in Windows.  The CMakeLists.txt is below #I think 2.6 is required for some of things I do below, but I am

Re: [CMake] Help using CMake Expat in Windows

2010-07-31 Thread Clark Taylor
This is very helpful. Thank you! My other question though is how can I get Cmake to add the correct information into the visual studio solution. Even though I have put in the directory names in the cmake gui, I then have to add the same directories manually to the solution. Did I miss

Re: [CMake] Help using CMake Expat in Windows

2010-07-31 Thread Clark Taylor
Please ignore my last e-mail. For some reason, my e-mail ate Stefan's earlier response, but I just saw it in the digest I receive. I'll try his suggestions out and see if it works. Clark On Sat, Jul 31, 2010 at 10:21 AM, Clark Taylor clark.n.tay...@gmail.comwrote: This is very helpful.

Re: [CMake] How to write CMakeLists.txt for Qt4 when Q_OBJECT in xxx.cpp file

2010-07-31 Thread John Drescher
On Sat, Jul 31, 2010 at 10:50 AM, 1+1=2 dbzhang...@gmail.com wrote: I want to use command like this: QT4_GENERATE_MOC(${CMAKE_CURRENT_SOURCE_DIR}/main.cpp main.moc) but I do not know how to make this run before main.cpp being compiled to main.o anyone can help me? Besides the fact that

Re: [CMake] Help using CMake Expat in Windows

2010-07-31 Thread Michael Jackson
Not sure if your issues are expat specific or just finding libraries in general but here is what I did. I created my own fork of Expat (http://gitorious.bluequartz.net/support-libraries/expat) which I build and install. I then set the EXPAT_INSTALL environment variable in my system. Then in my

Re: [CMake] Help using CMake Expat in Windows

2010-07-31 Thread Rolf Eike Beer
Am Samstag 31 Juli 2010, 00:59:36 schrieb Stefan Buschmann: Am 30.07.2010 22:23, schrieb Clark Taylor: ADD_EXECUTABLE(myApp ${Headers} ${Src}) You should not need to add ${Headers} here (usually only the sources should be compiled). If you do not include the headers to ADD_EXECUTABLE

Re: [CMake] Help using CMake Expat in Windows

2010-07-31 Thread John Drescher
On Sat, Jul 31, 2010 at 11:18 AM, Rolf Eike Beer e...@sf-mail.de wrote: Am Samstag 31 Juli 2010, 00:59:36 schrieb Stefan Buschmann: Am 30.07.2010 22:23, schrieb Clark Taylor: ADD_EXECUTABLE(myApp ${Headers} ${Src}) You should not need to add ${Headers} here (usually only the sources

Re: [CMake] How to write CMakeLists.txt for Qt4 when Q_OBJECT in xxx.cpp file

2010-07-31 Thread John Drescher
On Sat, Jul 31, 2010 at 9:05 AM, 1+1=2 dbzhang...@gmail.com wrote: Thanks for your answer. when use QT4_WRAP_CPP( Generated_MOC_SRCS main.cpp ),  moc_main.cxx will be generated. then I use #include moc_main.cxx instead of #include main.moc but ${Generated_MOC_SRCS}  can not be added to  

Re: [CMake] How to write CMakeLists.txt for Qt4 when Q_OBJECT in xxx.cpp file

2010-07-31 Thread John Drescher
On Sat, Jul 31, 2010 at 11:28 AM, John Drescher dresche...@gmail.com wrote: On Sat, Jul 31, 2010 at 9:05 AM, 1+1=2 dbzhang...@gmail.com wrote: Thanks for your answer. when use QT4_WRAP_CPP( Generated_MOC_SRCS main.cpp ),  moc_main.cxx will be generated. then I use #include moc_main.cxx

Re: [CMake] How to write CMakeLists.txt for Qt4 when Q_OBJECT in xxx.cpp file

2010-07-31 Thread 1+1=2
On Sat, Jul 31, 2010 at 11:28 PM, John Drescher dresche...@gmail.com wrote: On Sat, Jul 31, 2010 at 9:05 AM, 1+1=2 dbzhang...@gmail.com wrote: Thanks for your answer. when use QT4_WRAP_CPP( Generated_MOC_SRCS main.cpp ),  moc_main.cxx will be generated. then I use #include moc_main.cxx

Re: [CMake] How to write CMakeLists.txt for Qt4 when Q_OBJECT in xxx.cpp file

2010-07-31 Thread Michael Jackson
On Sat, Jul 31, 2010 at 11:45 AM, 1+1=2 dbzhang...@gmail.com wrote: On Sat, Jul 31, 2010 at 11:28 PM, John Drescher dresche...@gmail.com wrote: On Sat, Jul 31, 2010 at 9:05 AM, 1+1=2 dbzhang...@gmail.com wrote: Thanks for your answer. when use QT4_WRAP_CPP( Generated_MOC_SRCS main.cpp ),  

Re: [CMake] How to write CMakeLists.txt for Qt4 when Q_OBJECT in xxx.cpp file

2010-07-31 Thread 1+1=2
Thanks for your advice. I just want the project to be able to work under both cmake and qmake. I found an answer, which seems to work now. PROJECT(mytest) CMAKE_MINIMUM_REQUIRED(VERSION 2.6) FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui REQUIRED) INCLUDE(${QT_USE_FILE}) SET(pro_SOURCES main.cpp)

Re: [CMake] How to write CMakeLists.txt for Qt4 when Q_OBJECT in xxx.cpp file

2010-07-31 Thread Clinton Stimpson
If you put main.moc in add_executable() then you don't have to use the set_source_files_properties() to manually specify dependencies. Clint On 07/31/2010 10:11 AM, 1+1=2 wrote: Thanks for your advice. I just want the project to be able to work under both cmake and qmake. I found an

Re: [CMake] [vtkusers] mingw library naming - bug 10969

2010-07-31 Thread Jim Peterson
Andre, thanks, I think I finally found a potentially productive path for a resolution to this issue. The vtk CMAKE directory has two cmake macros (KitCommonBlock.cmake and KitCommonJavaBlock.cmake) in KitCommonBlock.cmake the ADD_LIBRARY I added: IF (WIN32) SET_TARGET_PROPERTIES (vtk${KIT}

Re: [CMake] Cuda with CMake

2010-07-31 Thread James Bigler
On Thu, Jul 29, 2010 at 12:33 PM, Ryan Pavlik rpav...@iastate.edu wrote: On 7/29/10 10:10 AM, lokmane.abbas-turki wrote: I am a beginner on creating Visual projects with CMake for Cuda applications. I use the following CMakeLists cmake_minimum_required(VERSION 2.8) PROJECT(FermeHedge)

[CMake] waf to cmake converter

2010-07-31 Thread Mark Constable
Hi, I've done some googling but came up with nothing so just wondering if anyone here knows of a tool to convert python waf based projects to Cmake? --markc ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] [vtkusers] mingw library naming - bug 10969

2010-07-31 Thread Jim Peterson
I Downloaded the Visual Studio Express 2008 and build Vtk with Java Wrappers one more time. This was successful. the samples run and display correctly. Sorry if my expecations from the MingW32 and MSYS compiler options in windows was too high. if they are untested and not to be used, I would

[Cmake-commits] CMake branch, next, updated. v2.8.2-321-gde9ec5c

2010-07-31 Thread Kovarththanan Rajaratnam
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via de9ec5c0f955967405db820f97821707ea35f5e8 (commit) via