[CMake] Cross compilation and native executables

Guillaume Duhamel guillaume.duhamel at gmail.com
Fri Jan 29 18:06:23 EST 2010


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 <SOURCE_DIR>
    INSTALL_COMMAND ""
    BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/c68k
)

Setting CONFIGURE_COMMAND is useless, but the output just
doesn't look right without it.
We tested it for cross compiling a Windows version and a
Dreamcast one and it looks like everything is ok :)

Thanks to both of you Brad and Michael for you help.

Guillaume
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100130/82818227/attachment.htm>


More information about the CMake mailing list