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 fi

[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 prompte

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 no

[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 a

[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 w

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...

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 wrote: > I have added source code support for this myself.

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 fil

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

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 sinc

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

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 Dont

[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 suppo

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, Bo

[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 /tmp/tes

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,

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 http://www.kitware.co

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} > ${CMAKE_CURRENT_BIN

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

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 gu

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

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 ope

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

2011-10-31 Thread Robert Dailey
Hey guys, Our team is running Perforce here at work and I want to setup any Visual Studio projects generated to use source control bindings for Perforce. The documentation for VS_SCC_PROJECTNAME, VS_SCC_LOCALPATH, VS_SCC_PROVIDER is pretty bad and I really have no clue on how to use these. Could

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 tha

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) include_directories(${CMAKE_CURRENT_SOUR

[CMake] CMake still broken post-2.8.1

2011-10-31 Thread Eric Noulard
2011/10/27 Phil Smith : > 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 your problem. S

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 mai

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

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 wrote: > On 31.10.11 13:10:28, Laszlo

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.

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 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 con

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

2011-10-31 Thread Laszlo Papp
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 convenient approach for me. This is my current CMakeLists