Hi there, I'm trying to compile different parts of my application with different compilers and I'm wondering how to do this within cmake. (The reason I need this is that I'm using nvidia's cuda but the specifics of cuda don't matter.) If I was to compile manually then my basic workflow looks like this:
# compile the regular parts g++ -o foo.cpp.o -c foo.cpp ... # compile the cuda parts nvcc -o bar.cu.o -c bar.cu.o ... # link them together like normal (nvcc produces gcc-compatible object files) g++ -o myprog foo.cpp.o bar.cu.o ... I've tried a few ways of using add_custom_command and/or add_custom_target but I haven't gotten anywhere. Can anyone tell me how to do this? Cheers, Alex _______________________________________________ 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
