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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to