Re: [CMake] Qt qmake not found

2010-01-08 Thread David Doria
On Fri, Jan 8, 2010 at 10:10 PM, David Doria wrote: > On Fri, Jan 8, 2010 at 10:07 PM, Mike Jackson > wrote: >> You installed qt version 3 instead of qt version 4. Sudo apt-get install >> qt4-dev.  Or something like that. >> >> Mike >> >> Sent from my iPod >> >> On Jan 8, 2010, at 21:59, David Do

Re: [CMake] Qt qmake not found

2010-01-08 Thread David Doria
On Fri, Jan 8, 2010 at 10:07 PM, Mike Jackson wrote: > You installed qt version 3 instead of qt version 4. Sudo apt-get install > qt4-dev.  Or something like that. > > Mike > > Sent from my iPod > > On Jan 8, 2010, at 21:59, David Doria wrote: > >> On Fri, Jan 8, 2010 at 9:50 PM, Tyler Roscoe wr

Re: [CMake] Qt qmake not found

2010-01-08 Thread Mike Jackson
You installed qt version 3 instead of qt version 4. Sudo apt-get install qt4-dev. Or something like that. Mike Sent from my iPod On Jan 8, 2010, at 21:59, David Doria wrote: On Fri, Jan 8, 2010 at 9:50 PM, Tyler Roscoe wrote: On Fri, Jan 08, 2010 at 09:30:14PM -0500, David Doria wrote:

Re: [CMake] Qt qmake not found

2010-01-08 Thread Bill Hoffman
David Doria wrote: On Fri, Jan 8, 2010 at 9:50 PM, Tyler Roscoe wrote: On Fri, Jan 08, 2010 at 09:30:14PM -0500, David Doria wrote: I am trying to use: FIND_PACKAGE(Qt4 REQUIRED) However, I get: CMake Error at /usr/share/cmake/Modules/FindQt4.cmake:1625 (MESSAGE): Qt qmake not found! I a

Re: [CMake] Qt qmake not found

2010-01-08 Thread David Doria
On Fri, Jan 8, 2010 at 9:50 PM, Tyler Roscoe wrote: > On Fri, Jan 08, 2010 at 09:30:14PM -0500, David Doria wrote: >> I am trying to use: >> FIND_PACKAGE(Qt4 REQUIRED) >> >> However, I get: >>  CMake Error at /usr/share/cmake/Modules/FindQt4.cmake:1625 (MESSAGE): >>    Qt qmake not found! >> >> I

Re: [CMake] Qt qmake not found

2010-01-08 Thread Tyler Roscoe
On Fri, Jan 08, 2010 at 09:30:14PM -0500, David Doria wrote: > I am trying to use: > FIND_PACKAGE(Qt4 REQUIRED) > > However, I get: > CMake Error at /usr/share/cmake/Modules/FindQt4.cmake:1625 (MESSAGE): >Qt qmake not found! > > I am using Fedora 11. I did > yum install qt* qmake* > > but n

[CMake] Qt qmake not found

2010-01-08 Thread David Doria
I am trying to use: FIND_PACKAGE(Qt4 REQUIRED) However, I get: CMake Error at /usr/share/cmake/Modules/FindQt4.cmake:1625 (MESSAGE): Qt qmake not found! I am using Fedora 11. I did yum install qt* qmake* but nothing changed. Any suggestions? Thanks, David __

Re: [CMake] error while stage install of crosscompiled binaries

2010-01-08 Thread Claus Klein
Hi David, Yes, this works fine when I change the CMAKE_INSTALL_PREFIX at CMakeCache.txt, sure. There is only one fault: the config files will be rebuild with the wrong path before install :-(( At least, I know 2 packages, NetSnmp and LibSmi, they has to be compiled with fix absolute pa

Re: [CMake] Running tests as part of a build

2010-01-08 Thread Gavin Heavyside
> > Have you looked at add_custom_command(TARGET ...) or > add_custom_target(...)? > Those are how you run can run commands as part of the build, but after some > other targets are compiled. > > Clint > That works great, thanks for the tip! I build my code, and then my test programs using add_exe

Re: [CMake] Running tests as part of a build

2010-01-08 Thread Clinton Stimpson
On Friday 08 January 2010 11:10:23 am Gavin Heavyside wrote: > I am seriously looking at moving the build system of some existing software > from scons to cmake. Most things I want to accomplish seem easier in > cmake, but there is one thing I can't work out how to do. > > I like to have (at least

[CMake] Running tests as part of a build

2010-01-08 Thread Gavin Heavyside
I am seriously looking at moving the build system of some existing software from scons to cmake. Most things I want to accomplish seem easier in cmake, but there is one thing I can't work out how to do. I like to have (at least some) unit test run as part of the build, e.g. when I type 'make' the

Re: [CMake] CUDA, CMAKE, and an attempt to build nbody

2010-01-08 Thread James Bigler
On Thu, Jan 7, 2010 at 5:08 PM, Brian Davis wrote: > > > > >> From FindCuda (with cmake now in my build tree so I can patch it): >>> >>> # Search in the CUDA_BIN_PATH first. >>> find_path(CUDA_TOOLKIT_ROOT_DIR >>> NAMES nvcc nvcc.exe >>> PATHS ENV CUDA_BIN_PATH >>> DOC "Toolkit l

Re: [CMake] FindCUDA with ITK

2010-01-08 Thread James Bigler
On Thu, Jan 7, 2010 at 8:52 PM, Luke Parkinson wrote: > - "James Bigler" wrote: > > On Wed, Jan 6, 2010 at 11:00 PM, Luke Parkinson wrote: > > > > >> >> Hello Everyone, >> > >> > I apologise in advance if this is the wrong way to revive an old topic, >> but I wasn't sure how to reply to old

Re: [CMake] error while stage install of crosscompiled binaries

2010-01-08 Thread David Cole
On Fri, Jan 8, 2010 at 12:37 AM, Claus Klein wrote: > > On 08.01.2010, at 02:25, Alexander Neundorf wrote: > > On Thursday 07 January 2010, Claus Klein wrote: >> >>> Hi >>> >>> i want to install a cross compiled (build host is a MAC OS X) project >>> to a temporary state dir to get an archive to

Re: [CMake] Overriding CMAKE_C_FLAGS on a per-directory basis

2010-01-08 Thread Marcel Loose
Hi Ingolf, If you've set the flags "-foo -bar" using add_definitions(), instead of manipulating CMAKE_C_FLAGS directly, you can use set_directory_properties(PROPERTIES COMPILE_DEFINITIONS "-baz") to override the compile definitions for the current directory and its subdirectories. Hope this

[CMake] Overriding CMAKE_C_FLAGS on a per-directory basis

2010-01-08 Thread Ingolf Steinbach
Hi, is it possible to override CMAKE_C_FLAGS on a per-directory basis? I have attempted to solve this by setting CMAKE_C_FLAGS to a different value than the default used in the project, but this modification is not reflected in the command line for compilation within the directory. Example "globa

Re: [CMake] intercomponent link dependencies?

2010-01-08 Thread Nico Schlömer
Hi, > I am guessing that > you're putting the detection for every library that your app can/must use > into one "find" module, when you actually probably should have a directory > in your source tree added to your CMAKE_MODULE_PATH that contains a large > number of find modules, some of which are

Re: [CMake] intercomponent link dependencies?

2010-01-08 Thread Nico Schlömer
Hi, > BTW, if you're on Linux and your package contains shared libraries, > instead of static libraries, then, iff the package was properly built > (i.e. with the dependencies linked into the shared libs) you won't need > to specify these indirect dependencies. Yeah well, they're all static from

Re: [CMake] intercomponent link dependencies?

2010-01-08 Thread Michael Wild
On 8. Jan, 2010, at 10:20 , Marcel Loose wrote: > Hi Nico, > > I think you should put the knowledge of the intercomponent link > dependencies in your FindXXX script. That way, you don't have to bother > the user of this third-party package with this knowledge. > > BTW, if you're on Linux and yo

Re: [CMake] intercomponent link dependencies?

2010-01-08 Thread Marcel Loose
Hi Nico, I think you should put the knowledge of the intercomponent link dependencies in your FindXXX script. That way, you don't have to bother the user of this third-party package with this knowledge. BTW, if you're on Linux and your package contains shared libraries, instead of static librarie

Re: [CMake] intercomponent link dependencies?

2010-01-08 Thread Jed Brown
On Thu, 7 Jan 2010 19:24:19 -0600, Ryan Pavlik wrote: > So then actually should we all be doing imported targets in our find modules > then? Many/most Find* modules don't work with static libraries. Jed ___ Powered by www.kitware.com Visit other Kitwa

Re: [CMake] cmake 2.6 : Issue in renaming the cmake executable on Linux

2010-01-08 Thread Michael Wild
On 8. Jan, 2010, at 9:54 , Mahendra Ladhe wrote: > Hi, >I've a Ubuntu 8.04.1 Linux machine and cmake version 2.4-patch 7 in > /usr/bin/ > Due to project requirement, I installed cmake version 2.6-patch 4 under > /usr/local/ > > I want to make sure that when I or other users execute cmake,

[CMake] cmake 2.6 : Issue in renaming the cmake executable on Linux

2010-01-08 Thread Mahendra Ladhe
Hi,    I've a Ubuntu 8.04.1 Linux machine and cmake version 2.4-patch 7 in /usr/bin/ Due to project requirement, I installed cmake version 2.6-patch 4 under /usr/local/ I want to make sure that when I or other users execute cmake, by default it's always the 2.4 version in /usr/bin/cmake irrespec