<br><br>On Friday, January 20, 2012, John David Duncan <<a href="mailto:john.duncan@oracle.com">john.duncan@oracle.com</a>> wrote:<br>> Hi,<br>><br>> I'm looking at building a large project on Windows. I am currently able to build the whole project using CMake and Visual Studio.<br>
><br>> Now I'd like to add a "subproject" (or just a directory), but in this particular subdirectory the C language files need to be compiled with mingw (because of extensive use of C99). I understand that, in theory, I should be able to compile these with mingw into DLLs and then link with the rest of the project.<br>
><br>> I'd still like to control the whole build with CMake, but I see at least two potential problems. One is that I can't override CMAKE_C_COMPILER, and another is that in the subproject I may need CMake to use a Makefile generator rather than a Visual Studio project generator.<br>
><br>> Does anyone know if there's a way to do this with CMake?<br>><br>> Thanks,<br>><br>> JD<br>><br>><br>><br>> --<br>><br>> Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
><br>> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>><br>> Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>> Follow this link to subscribe/unsubscribe:<br>> <a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br>><br><br>You could try building the C99 stuff using an ExternalProject_Add call. Search around for examples of using that.<br>
<br>HTH,<br>David