[CMake] FindGTK2

2012-09-15 Thread Guillaume Duhamel
Heya, I posted a patch for the FindGTK2 module almost 10 months ago : http://public.kitware.com/Bug/view.php?id=12596 The problem this patch is trying to fix is that gtk2 is not detected on NetBSD (at least not when gtk2 is installed through pkg_add), so it adds three more paths to search for gtk

[CMake] file COPY/INSTALL doesn't overwrite existing files?

2010-09-30 Thread Guillaume Duhamel
Hi, I'm trying to use "file(COPY ..." during the build of one of my project. The documentation says that files get overwritten according to their timestamps, but it seems they just never get overwritten. For instance, with this CMakeLists : === project(test) cmake

Re: [CMake] ExternalProject and Visual Studio

2010-08-24 Thread Guillaume Duhamel
> > Don't do this on line 175: (just delete the line) > BUILD_COMMAND ${CMAKE_BUILD_TOOL} > > Instead, just let cmake compute the BUILD_COMMAND for you... > > The default build command for ExternalProject_Add for cmake-built projects > is something like: > cmake --build . --config Release > > > It

[CMake] ExternalProject and Visual Studio

2010-08-24 Thread Guillaume Duhamel
Hi, I'm using ExternalProject_Add to build a native-only part of my project. When used with Visual Studio, the build step only opens a new Visual Studio instance and doesn't automatically start building... in fact, it doesn't even choose the solution file. Is there any way to automatically open a

[CMake] New FindXXX modules for XUL and NSPR

2010-03-13 Thread Guillaume Duhamel
Hi, I've been working on some FindXXX modules for XUL ( https://developer.mozilla.org/En/XUL ) and for its dependency: NSPR ( http://www.mozilla.org/projects/nspr/ ) and I'm now searching for some feedback on them. I've already talked a bit about it and about a submodule I had to write in a previ

Re: [CMake] find_path for multiple files

2010-03-04 Thread Guillaume Duhamel
I ended up writing my own macro to do the job: http://code.google.com/p/soupcon/source/browse/trunk/findxul/FMP.cmake there's also some usage example in my FindXUL module: http://code.google.com/p/soupcon/source/browse/trunk/findxul/FindXUL.cmake That's a bit more complex than what I described as

[CMake] find_path for multiple files

2010-03-03 Thread Guillaume Duhamel
Hi, I'm working on a new FindXXX module and I need to search for paths providing multiple header files, for instance path P1 could provide A.h and B.h while not providing C.h when path P2 provides the three of them. In this case, I want to detect P2 only. Does CMake has some built-in functions or

Re: [CMake] Cross compilation and native executables

2010-01-29 Thread Guillaume Duhamel
I ended up using a different approach based on ExternalProject: include(ExternalProject) ExternalProject_Add(c68kinc DOWNLOAD_COMMAND "" SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/c68k CONFIGURE_COMMAND cmake INSTALL_COMMAND "" BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/c68k ) Settin

Re: [CMake] Cross compilation and native executables

2010-01-28 Thread Guillaume Duhamel
> (3) > Use execute_process() to run the CMake command line tool and configure the > host-only project during the configuration step of the main project. This > will make the results of the export() command from the subproject available > for loading by the main project. Then add a custom target

[CMake] Cross compilation and native executables

2010-01-26 Thread Guillaume Duhamel
Hi, I'm one of the Yabause ( http://yabause.org ) developers and we're currently porting our build system from Autotools to CMake. We made it to the point were basic stuff is working and we now want to get cross compilation working too. One of Yabause compilation step require to generate and run