Re: [CMake] Cmake unable to detect dependencies

2011-12-04 Thread Michael Wild
On 12/04/2011 03:37 PM, Surya Kiran Gullapalli wrote: > Hello all, > > I'm building several executables which are located in a single > directory. Each executable has different include path. I'm calling > add_executable in a loop and If I call Include_Directories in the loop, > the last built exec

Re: [CMake] Best practices/preferred methods for linking external libraries

2011-12-04 Thread Michael Jackson
On Dec 1, 2011, at 4:56 PM, Matthew LeRoy wrote: > We began using CMake a few months ago for a couple of small cross-platform > projects, and we're still > learning all the ins and outs and capabilities CMake has to offer, as well as > how to get the most > out of CMake by using it "The Right

Re: [CMake] Automatically pull in dependencies from QtDesigner plugins

2011-12-04 Thread Michael Jackson
Do you have "MyWidget" packaged as a true library, or did you just create the Designer Plugin and then have a "loose" .cpp/.h file? The is a project called Qwt* that has a similar setup. It has a Designer plugin for its various widgets and it has a qwt.dylib/.dll/.so that your program links

[CMake] Automatically pull in dependencies from QtDesigner plugins

2011-12-04 Thread David Doria
I have created a QT widget, MyWidget, and a QtDesigner plugin for MyWidget. Now I want to use MyWidget in bigger project, MyProject. I created a ui file for MyProject with QtDesigner and add a MyWidget in the designer. Now when I try to compile MyProject, I get (of course) "error: can't find MyWidg

[CMake] Cmake unable to detect dependencies

2011-12-04 Thread Surya Kiran Gullapalli
Hello all, I'm building several executables which are located in a single directory. Each executable has different include path. I'm calling add_executable in a loop and If I call Include_Directories in the loop, the last built executable will have a long include path. To avoid that, I'm setting