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 Brad King
Guillaume Duhamel wrote: > file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/c68k) > execute_process(COMMAND cmake ${CMAKE_CURRENT_SOURCE_DIR}/c68k > WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/c68k) > add_custom_target(c68kinc COMMAND cmake --build > ${CMAKE_CURRENT_BINARY_DIR}/c68k) > > It d

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

Re: [CMake] Cross compilation and native executables

2010-01-27 Thread Brad King
Michael Wild wrote: > On 26. Jan, 2010, at 21:28 , Guillaume Duhamel wrote: >> On the other hand, I've found out about the ExternalProject module in the >> CMake documentation, could it be used to create a native-only CMake >> sub-project? Yes. >> What I would really like is some way to have all

Re: [CMake] Cross compilation and native executables

2010-01-26 Thread Michael Wild
On 26. Jan, 2010, at 21:28 , Guillaume Duhamel wrote: > 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

[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