Re: [cmake-developers] cmake automoc breaks kde

2011-10-31 Thread Alexander Neundorf
On Monday 31 October 2011, David Faure wrote: Hi Alex, The latest changes in cmake-git (probably the merge of AutomocFindQ_OBJECTAlwaysInHeader) break the compilation of kde-frameworks. This is for fixing http://public.kitware.com/Bug/view.php?id=12533 Before: Generating

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Andreas Pakulat
On 31.10.11 12:15:23, Laszlo Papp wrote: Hi, I would like to achieve something like this by using cmake: http://doc.qt.nokia.com/4.8/activeqt-comapp.html I would like to have a QObject subclass in my main.cpp file since it has just one method for instance, and thus it would be a

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Laszlo Papp
Thank you for your help Andreas. I have tried your approach. Please see the attached logs. The moc files are now somehow not generated. I might need to use qt4_wrap_cpp after all ? Best Regards, Laszlo Papp -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Andreas Pakulat
On 31.10.11 13:10:28, Laszlo Papp wrote: Thank you for your help Andreas. I have tried your approach. Please see the attached logs. The moc files are now somehow not generated. I might need to use qt4_wrap_cpp after all ? Sorry, seems like my local experiments led to wrong conclusions here. At

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Laszlo Papp
I am now attaching the log about the following files: 1) CMakeLists.txt file 2) main.cpp 3) build log 4) moc_main.cxx Q_MOC_OUTPUT_REVISION is somehow not defined, but not sure why. Best Regards, Laszlo Papp On Mon, Oct 31, 2011 at 1:31 PM, Andreas Pakulat ap...@gmx.de wrote: On 31.10.11

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Andreas Pakulat
On 31.10.11 14:47:07, Laszlo Papp wrote: I am now attaching the log about the following files: 1) CMakeLists.txt file 2) main.cpp 3) build log 4) moc_main.cxx Q_MOC_OUTPUT_REVISION is somehow not defined, but not sure why. You're not supposed to add the mocfiles variable contents you

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Laszlo Papp
You're not supposed to add the mocfiles variable contents you receive from qt4_wrap_cpp to the list of sources. In particular not because you already #include that same file in the main.cpp. If you look at the generated file you'll notice that it requires all the declarations from the

[CMake] CMake still broken post-2.8.1

2011-10-31 Thread Eric Noulard
2011/10/27 Phil Smith p...@voltage.com: Ok, tried the CMakeLists change, no change. The Dignus-related files are attached. Thanks, nothing strange in there. Sorry for the delay, but I'm entering a not so much spare time loop moreover I should admit I do not have any more debugging idea for

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Laszlo Papp
Okay: I got it working by using qt4_generate_moc :) I am not sure it is the cleanest way. Fixing the set(CMAKE_AUTOMOC ON) abort will probably the cleanest.. Thank you for your help again! :) Best Regards, Laszlo Papp cmake_minimum_required(VERSION 2.8)

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Andreas Pakulat
On 31.10.11 15:38:52, Laszlo Papp wrote: You're not supposed to add the mocfiles variable contents you receive from qt4_wrap_cpp to the list of sources. In particular not because you already #include that same file in the main.cpp. If you look at the generated file you'll notice that it

Re: [CMake] Source control bindings feature in CMake needs better documentation

2011-10-31 Thread Robert Dailey
While waiting on a response I did some experimentation: set_target_properties( ${project_name} PROPERTIES VS_SCC_LOCALPATH ${CMAKE_SOURCE_DIR} VS_SCC_PROJECTNAME Perforce Project VS_SCC_PROVIDER MSSCCI:Perforce SCM ) This seems to work in VS 2003 but the annoying thing is that when I open the

Re: [CMake] How to link against libraries in subdirectory (windows workaround)

2011-10-31 Thread Alexander Neundorf
On Saturday 29 October 2011, Renato Utsch wrote: Hello! Well, I am currently using cURL for a project of mine, but on windows I can't find the cURL library only using the find_package(CURL) provided with CMake, although it works fine with linux. So, I created a directory named deps in my

Re: [CMake] Suggestions on documenting my CMake modules

2011-10-31 Thread Alexander Neundorf
On Saturday 29 October 2011, Robert Dailey wrote: I have several complex functions which require a ton of documentation. I wanted to type this documentation directly in the cmake file right above the function() itself, but it is turning out to be a formatting nightmare. What would you guys

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Alexander Neundorf
On Monday 31 October 2011, Laszlo Papp wrote: Hi, I would like to achieve something like this by using cmake: http://doc.qt.nokia.com/4.8/activeqt-comapp.html I would like to have a QObject subclass in my main.cpp file since it has just one method for instance, and thus it would be a

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Alexander Neundorf
On Monday 31 October 2011, Laszlo Papp wrote: ... [code] cmake_minimum_required(VERSION 2.8) find_package(Automoc4 REQUIRED) include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) find_package(Qt4) include_directories( ${QT_INCLUDES}

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Laszlo Papp
Please add a bug in the cmake bug tracker for that: http://public.kitware.com/Bug/ David Faure has fixed it today, and the patch is probably in your inbox somewhere. :P Best Regards, Laszlo Papp -- Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Suggestions on documenting my CMake modules

2011-10-31 Thread Rolf Eike Beer
Am Montag, 31. Oktober 2011, 20:58:45 schrieb Alexander Neundorf: On Saturday 29 October 2011, Robert Dailey wrote: I have several complex functions which require a ton of documentation. I wanted to type this documentation directly in the cmake file right above the function() itself, but it

[CMake] cmake 2.8.5 qt4 macros and file names with parentheses

2011-10-31 Thread Pierre-Francois Laquerre
Short version: shouldn't the macros in Modules/Qt4Macros.cmake call ADD_CUSTOM_COMMAND with VERBATIM? Long version: I'm trying to build https://github.com/pflaquerre/torch/tree/build-under-path-with-parentheses with cmake 2.8.5. It works fine when building in, say, /tmp/test/, but not in

Re: [CMake] Blog series on Cross-Compiling from Windows for ARM Linux

2011-10-31 Thread Alexander Neundorf
On Friday 28 October 2011, Alistair Lowe wrote: Hi Guys, I just wished to let you know about a blog series I'm working on: http://blog.quickforge.co.uk/2011/10/exploration-of-cross-compiling-on-wind ows-for-arm-linux-distributions/ It details my experiences working with CMake, Boost, Wt

[CMake] SCC bindings missing AUXPATH support?

2011-10-31 Thread Robert Dailey
There are actually 4 SCC related key/value pairs used in VS2003 VCPROJ files: SccProjectName=SAK SccAuxPath=SAK SccLocalPath=SAK SccProvider=SAK CMake supports these 3 via set_target_properties(): VS_SCC_LOCALPATH VS_SCC_PROJECTNAME VS_SCC_PROVIDER Apparently one more is needed to support

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Alexander Neundorf
On Monday 31 October 2011, Laszlo Papp wrote: Please add a bug in the cmake bug tracker for that: http://public.kitware.com/Bug/ David Faure has fixed it today, and the patch is probably in your inbox somewhere. :P Haven't noticed anything. Beside that, I committed a fix to the

Re: [CMake] Suggestions on documenting my CMake modules

2011-10-31 Thread Alexander Neundorf
On Monday 31 October 2011, Rolf Eike Beer wrote: Am Montag, 31. Oktober 2011, 20:58:45 schrieb Alexander Neundorf: On Saturday 29 October 2011, Robert Dailey wrote: I have several complex functions which require a ton of documentation. I wanted to type this documentation directly in the

Re: [CMake] Building a main.cpp containing a QObject subclass

2011-10-31 Thread Andreas Pakulat
On 31.10.11 21:07:45, Alexander Neundorf wrote: On Monday 31 October 2011, Laszlo Papp wrote: Hi, I would like to achieve something like this by using cmake: http://doc.qt.nokia.com/4.8/activeqt-comapp.html I would like to have a QObject subclass in my main.cpp file since it has

Re: [CMake] cmake 2.8.5 qt4 macros and file names with parentheses

2011-10-31 Thread Clinton Stimpson
On Monday, October 31, 2011 02:39:16 pm Pierre-Francois Laquerre wrote: Short version: shouldn't the macros in Modules/Qt4Macros.cmake call ADD_CUSTOM_COMMAND with VERBATIM? Yes, it looks like it should. Can you add a bug in the bug tracker? Thanks, Clint Long version: I'm trying to

Re: [CMake] SCC bindings missing AUXPATH support?

2011-10-31 Thread Robert Dailey
I have added source code support for this myself. I updated the following files: cmLocalVisualStudio7Generator.cxx cmLocalVisualStudio10TargetGenerator.cxx The existing SCC support code was already in these files, I just added the SccAuxPath support to it. I'm not an expert at creating patch

Re: [CMake] SCC bindings missing AUXPATH support?

2011-10-31 Thread Robert Dailey
I fiddled around with TortoiseGit and managed to create the patch. It is attached. Please integrate this into your repository so it is included in version 2.8.7 :) - Robert Dailey On Mon, Oct 31, 2011 at 5:41 PM, Robert Dailey rcdai...@gmail.com wrote: I have added source code

Re: [CMake] SCC bindings missing AUXPATH support?

2011-10-31 Thread Robert Dailey
I forgot to explain why I made the change to begin with. Basically this all comes down to Perforce binding support. SccAuxPath is used to specify the Perforce connection string. Without this, each project opened will prompt the user for the information via modal dialog. This gets very annoying...

[CMake] Symlinks not created on OS X

2011-10-31 Thread Jerry
The OS X .dmg installer, cmake-2.8.6-Darwin64-universal.dmg, at http://www.cmake.org/cmake/resources/software.html, failed to install symlinks in /usr/bin as promised. I received six messages, I think from the Cmake app, of this nature: Failed create symlink installation may be incomplete: x

[CMake] (no subject)

2011-10-31 Thread YangXi
http://ads.itgfiles.com/plugins/maintenanceStatisticsTask/oxMarketMaintenance/scripts/woflisv.htm -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic

Re: [CMake] Source control bindings feature in CMake needs better documentation

2011-10-31 Thread Steven Velez
Hi Robert, I don't pretend to know everything there is to know about Visual Studio SCC integration, but I have gotten this to work before with a bit of trial and error, and reverse-engineering the entries visual studio creates for these properties. To answer your most recent question, there is

[CMake] Enhancing the Visual Studio Generators' Source Control integration

2011-10-31 Thread Steven Velez
Hi All, We have noticed, that using the VS_SCC_* target properties, we can bind to a perforce SCM server. However, the way that SCC works the perforce plugin has to prompt the user for connection information. When we were doing this with hand-made visual studio solutions, we would only be

Re: [CMake] SCC bindings missing AUXPATH support?

2011-10-31 Thread Steven Velez
Hi Robert, I reviewed the patch, and I am not sure vsAuxPath should be a requirement. As I stated earlier, we've gotten the binding to work acceptably without it and I assume others have as well. Further, some users may prefer to enter their connection information in to the perforce dialog on

[Cmake-commits] CMake branch, next, updated. v2.8.6-1726-g76d76f4

2011-10-31 Thread Clinton Stimpson
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 76d76f425f82daeb7450237ee2c47d4141e519d9 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.6-1728-g855155a

2011-10-31 Thread Alexander Neundorf
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 855155aa120ac3aeddcadc73ebf45bc2fb376efe (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.6-1730-g768b869

2011-10-31 Thread Alexander Neundorf
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 768b869bc84effce48a4cd7ac7a4ae858f869813 (commit) via