[CMake] different compiler flags for each executable

2010-04-28 Thread Alex Flint
Hi there, Is there a way to add compiler flags (a la CMAKE_CXX_FLAGS) for just one particular executable? Cheers, Alex ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

Re: [CMake] using two different compilers together

2009-02-26 Thread Alex Flint
Bill: Thanks for the pointer, it's working brilliantly Alex: Thanks for the suggestions even though I ended up going with findcuda On Wed, Feb 25, 2009 at 8:45 PM, Bill Hoffman wrote: > There is a FindCuda.cmake here, that I have looked at: > > http://www.sci.utah.edu/~abe/FindCuda.html > > I am

[CMake] automatically re-generating makefiles

2009-02-26 Thread Alex Flint
Hi there, I've noticed that when I run "make blah" then the makefile is automatically re-generated if I've changed anything in CMakeLists.txt since the last time I built "blah". However, if I add a new target to CMakeLists.txt then I have to run cmake manually or else I just get "to rule to make f

[CMake] using two different compilers together

2009-02-25 Thread Alex Flint
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