Re: [CMake] Checking if git submodules have been initialized

2012-05-09 Thread Arnaud Gelas
if( NOT EXISTS "${MY_SOURCE_DIR}/project/.git" ) message( SEND_ERROR "The git submodules are not available. Please run git submodule update --init --recursive" ) endif() HTH On 05/09/2012 02:52 PM, David Doria wrote: I have recently started using git submodules in my projects. I have had multi

Re: [CMake] Issues with FindBoost / ${Boost_LIBRARIES}

2012-02-01 Thread Arnaud Gelas
On Wed, Feb 1, 2012 at 4:27 AM, Michael Wild wrote: > On 02/01/2012 09:33 AM, Arnaud Gelas wrote: > > Hi all, > > > > I have been trying to compile a very simple example with cmake (2.8.5) > > and boost, and I can't get what I am doing

Re: [CMake] Issues with FindBoost / ${Boost_LIBRARIES}

2012-02-01 Thread Arnaud Gelas
Eike, I have changed the version from 1.46 to 1.46.0 and removed the link_directories() command, then run the command as follows: $ cmake -DBoost_DEBUG=On ~/GITROOT/BGLCMakeQuestion -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler:

[CMake] Issues with FindBoost / ${Boost_LIBRARIES}

2012-02-01 Thread Arnaud Gelas
Hi all, I have been trying to compile a very simple example with cmake (2.8.5) and boost, and I can't get what I am doing wrong... CMakeLists.txt -- cmake_minimum_required(VERSION 2.6) project(ReadGraph) find_package(Boost 1.46 COMPONENTS graph regex ) link_directories(${B

Re: [CMake] ctest, valgrind & callgrind

2011-11-10 Thread Arnaud Gelas
-tool=callgrind -v" ) Let us know if that works. -kt -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Arnaud Gelas Sent: Thursday, November 10, 2011 2:11 PM To: cmake@cmake.org Subject: [CMake] ctest, valgrind& callgrind Hi all,

[CMake] ctest, valgrind & callgrind

2011-11-10 Thread Arnaud Gelas
Hi all, I am trying to use callgrind with ctest to profile some component of a project. I have tried replacing MEMORYCHECK_COMMAND/usr/bin/valgrind by MEMORYCHECK_COMMAND/usr/bin/valgrind --tool=callgrind -v When I run ctest -D ExperimentalMemCheck with the first c

Re: [CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules

2011-10-06 Thread Arnaud Gelas
Hi Bill, Here are some timing, I made for ITK to compare ninja vs make (made last month). See results below The difference is not much, especially when you realized that none of the data have been downloaded, and I am not sure that at the end we get the same binary tree... Encouraging m

[CMake] execute process when a specific test is launched

2011-03-01 Thread Arnaud GELAS
Hi all, I would need to make sure one executable is running before running one test added by CTest. I would like to do something like that: execute_process( COMMAND ${my_executable} ) add_test( MyOwnTest foo ) except that my_executable would be triggered, just before MyOwnTest starts. Is it

Re: [CMake] how to write a cmake function with 2 or 3 arguments?

2011-03-01 Thread Arnaud GELAS
g1='${arg1}' arg2='${arg2}'") endforeach() message("f='${f}' arg1='${arg1}' arg2='${arg2}' ARGV2='${ARGV2}'") endfunction() HTH, David On Tue, Mar 1, 2011 at 3:04 PM, Arnaud GELAS wrote: Hi all, I would like to

[CMake] how to write a cmake function with 2 or 3 arguments?

2011-03-01 Thread Arnaud GELAS
Hi all, I would like to write a cmake function with one optional 3rd argument, the two first are mandatory. How to proceed? Let's take the following example: function( add_sikuli_test arg1 arg2 arg3 ) ... endfunction( add_sikuli_test ) Thanks, Arnaud ___

Re: [CMake] error with FindQt4.cmake (on master)

2011-02-24 Thread Arnaud GELAS
On 02/24/2011 11:35 AM, David Cole wrote: On Thu, Feb 24, 2011 at 10:17 AM, Arnaud GELAS wrote: On 02/23/2011 07:35 PM, Clinton Stimpson wrote: On Wednesday, February 23, 2011 02:38:38 pm Arnaud GELAS wrote: On 02/23/2011 04:35 PM, Clinton Stimpson wrote: On Wednesday, February 23, 2011 02

Re: [CMake] error with FindQt4.cmake (on master)

2011-02-24 Thread Arnaud GELAS
On 02/23/2011 07:35 PM, Clinton Stimpson wrote: On Wednesday, February 23, 2011 02:38:38 pm Arnaud GELAS wrote: On 02/23/2011 04:35 PM, Clinton Stimpson wrote: On Wednesday, February 23, 2011 02:27:29 pm Arnaud GELAS wrote: On 02/23/2011 04:26 PM, Clinton Stimpson wrote: On Wednesday

Re: [CMake] error with FindQt4.cmake (on master)

2011-02-23 Thread Arnaud GELAS
On 02/23/2011 04:35 PM, Clinton Stimpson wrote: On Wednesday, February 23, 2011 02:27:29 pm Arnaud GELAS wrote: On 02/23/2011 04:26 PM, Clinton Stimpson wrote: On Wednesday, February 23, 2011 02:12:12 pm Arnaud GELAS wrote: Hi all, I have just pulled from master, and in my project I can&#

Re: [CMake] error with FindQt4.cmake (on master)

2011-02-23 Thread Arnaud GELAS
On 02/23/2011 04:26 PM, Clinton Stimpson wrote: On Wednesday, February 23, 2011 02:12:12 pm Arnaud GELAS wrote: Hi all, I have just pulled from master, and in my project I can't get the QT_VERSION_MINOR Here is what I get when configuring my project: -- Found Qt4: /usr/bin/qmake-qt4 (

[CMake] error with FindQt4.cmake (on master)

2011-02-23 Thread Arnaud GELAS
Hi all, I have just pulled from master, and in my project I can't get the QT_VERSION_MINOR Here is what I get when configuring my project: -- Found Qt4: /usr/bin/qmake-qt4 (found version "4.7.1") CMake Error at CMakeLists.txt:446 (MESSAGE): GoFigure2 requires Qt4.5 (or newer version) to b

[CMake] TRY_COMPILE and -Werror

2010-08-20 Thread Arnaud GELAS
Hi all, I would like to check if one piece of code generates a warning or not (about a deprecated method). I want to use TRY_COMPILE and adds -Werror to gcc flags. I have tried the following: TRY_COMPILE(VTK_FFMPEG_GUESSFORMAT ${VTK_BINARY_DIR}/CMakeTmp ${VTK_CMAKE_DIR}/vt

[CMake] contribution: FindMySQL.cmake

2010-07-06 Thread Arnaud GELAS
Hi guys, We have been for our own projects the following file to find mysql packages, and I would like to contribute it to the community. Note: it works fine for MySQL 5.1 on Windows (tested on XP and 7), Mac (tested on 10.5 and 10.6) and Linux. I guess it could be improved for other version

Re: [CMake] BundleUtilities Question on Linux: Libraries Not Found during fixup?

2010-04-20 Thread Arnaud GELAS
Hi Kent, Have you tried to export the paths (to the dynamic libraries) before making the package? (Note it works on my project) my 2cts, Arnaud On 04/20/2010 03:42 PM, kent williams wrote: Well I found the magic incantation on OS X to get fixup_bundle work. Now I'd like it to work on Linux.

Re: [CMake] Subversion_WC_INFO and git svn

2010-04-09 Thread Arnaud Gelas
. Let's see what Tristan says Arnaud On Apr 9, 2010, at 11:35 AM, David Cole wrote: On Fri, Apr 9, 2010 at 11:25 AM, Arnaud Gelas > wrote: David, you're right Suversion_WC_INFO should only focus on svn working copy! Such kind of features should be included in a specific modu

Re: [CMake] Subversion_WC_INFO and git svn

2010-04-09 Thread Arnaud Gelas
Apr 9, 2010 at 10:55 AM, Arnaud Gelas > wrote: Hi guys, I have recently mirrored one svn project on github, and I am trying to keep both version up to date using git svn. In this project (on the svn repository), I was using Subversion_WC_INFO to get the revision, but now on the git rep

[CMake] Subversion_WC_INFO and git svn

2010-04-09 Thread Arnaud Gelas
Hi guys, I have recently mirrored one svn project on github, and I am trying to keep both version up to date using git svn. In this project (on the svn repository), I was using Subversion_WC_INFO to get the revision, but now on the git repository, I get one error message that my directory

Re: [CMake] how to define the output location of QT4_WRAP_UI?

2010-01-26 Thread Arnaud GELAS
Hi, QT4_WRAP_UI generates ui_*h files in the binary folder. You only need to add this folder to the list of includes and that's it. If I am not wrong, it should be something like INCLUDE_DIRECTORIES( ${Quad_BINARY_DIR} ) Arnaud On 01/26/2010 05:39 PM, e...@cs.bgu.ac.il wrote: hello. I've ra

Re: [CMake] Qt stand alone and deployable bundle OS X application

2009-08-18 Thread Arnaud GELAS
Hi Mike, Thanks for your email! You made me realize that I was building static libraries... That was the main reason why I had some troubles. Note that I had to add in CompleteBundle.cmake.in the following lines (to remove some warnings with cmake): IF( COMMAND CMAKE_POLICY ) CMAKE_PO

[CMake] Qt stand alone and deployable bundle OS X application

2009-08-17 Thread Arnaud GELAS
Hi all, I am trying to make a stand alone bundle OS X application using CMake. My application is based on Qt4.5. I have been following the following wiki page (with QtTest example): http://www.cmake.org/Wiki/BuildingOSXApplications This bundle application works perfectly on a machine where Qt