Re: [CMake] suspicious behaviour of FindPkgConfig

2011-01-06 Thread Michael Wild
1. Flann uses CMake, so it should install a FlannConfig.cmake (possibly in addition to the currently installed flann.pc). This would obsolete all issues below. 2. Since Flann only comes with a pkg-config module and there's no FindFlann.cmake module in CMake, the OP could either write his own (ref

Re: [CMake] suspicious behaviour of FindPkgConfig

2011-01-06 Thread Ryan Pavlik
FindPkgConfig and find_package are not really related: some scripts for find_package do use pkg-config to help them, but you shouldn't need to check for it yourself. Also, find scripts shouldn't be used with "include". It looks a bit like build system overkill: this should do roughly the same thi

Re: [CMake] Problems with CPack and Mac OS X

2011-01-06 Thread Michael Jackson
You will want to read this page: http://www.cmake.org/Wiki/BundleUtilitiesExample It should answer your questions. ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQu

Re: [CMake] Problems with CPack and Mac OS X

2011-01-06 Thread NoRulez
Thank you very much, but how can I add the QtCore.framework for example? INSTALL(TARGETS "/Library/Frameworks/QtCore.framework" FRAMEWORK DESTINATION MyApp.app/Contents/Frameworks COMPONENT MyApp) Doesn't work, maybe I misunderstood some CMake commands? Best Regards NoRulez Am 06.01.2011 um 2

Re: [CMake] Problems with CPack and Mac OS X

2011-01-06 Thread Michael Wild
On 01/06/2011 09:31 PM, NoRulez wrote: > Hi, > > I want to use the package generator PackageMaker. > > If I run cpack from the command line I get the Error that my app couldn't be > found (without .app) > > I have a bundle created with add_executable(MyApp MACOSX_BUNDLE...) > > In the cpack co

Re: [CMake] Possible bug in XCode backend and proposed workarounds

2011-01-06 Thread Michael Wild
On 01/06/2011 05:47 PM, Samuel Crow wrote: > > > > > - Original Message >> From: Michael Wild >> To: cmake@cmake.org >> Sent: Thu, January 6, 2011 10:16:28 AM >> Subject: Re: [CMake] Possible bug in XCode backend and proposed workarounds >> >> On 01/06/2011 05:02 PM, Samuel Crow wrote

[CMake] Problems with CPack and Mac OS X

2011-01-06 Thread NoRulez
Hi, I want to use the package generator PackageMaker. If I run cpack from the command line I get the Error that my app couldn't be found (without .app) I have a bundle created with add_executable(MyApp MACOSX_BUNDLE...) In the cpack configuration I have INSTALL(PROGRAMS "${CMAKE_RUNTIME_OUTPU

[CMake] suspicious behaviour of FindPkgConfig

2011-01-06 Thread Nizar Khalifa Sallem
Hi all, I am getting in trouble with the FindPkgConfig module. Here is a piece of rather bigger CMakeLists.txt file that doesn't success to find Doxygen although installed on the machine(ubuntu 10.4, cmake 2.8.3) # $Id$ # # -

[CMake] ANN: Early registration deadline ending tomorrow

2011-01-06 Thread Lisa Avila
Reminder: the early registration deadline for the February training course (covering ITK, VTK, ParaView, and CMake) in Lyon, France is tomorrow, January 7th. Please visit our web site for more information and registration details at either: http://www.kitware.com/products/protraining3.html (in En

Re: [CMake] Possible bug in XCode backend and proposed workarounds

2011-01-06 Thread Samuel Crow
- Original Message > From: Michael Wild > To: cmake@cmake.org > Sent: Thu, January 6, 2011 10:16:28 AM > Subject: Re: [CMake] Possible bug in XCode backend and proposed workarounds > > On 01/06/2011 05:02 PM, Samuel Crow wrote: > > Hello, > > > > I've built LLVM 2.9SVN successfully

Re: [CMake] Installing Python Modules with CMake

2011-01-06 Thread Michael Hertling
On 01/04/2011 08:50 AM, Michael Wild wrote: > On 01/03/2011 06:23 PM, Todd Gamblin wrote: >> On Jan 3, 2011, at 1:34 AM, Michael Wild wrote: >> >>> On 01/03/2011 09:11 AM, Todd Gamblin wrote: Is there some standard way in CMake to get a project-local install destination for python librar

Re: [CMake] Possible bug in XCode backend and proposed workarounds

2011-01-06 Thread Michael Wild
On 01/06/2011 05:02 PM, Samuel Crow wrote: > Hello, > > I've built LLVM 2.9SVN successfully with CMake under XCode but had some > workarounds needed to get to that point. > > 1. Building in debug mode there was one archive file dependency that looked > for > the release folder instead of the

[CMake] Possible bug in XCode backend and proposed workarounds

2011-01-06 Thread Samuel Crow
Hello, I've built LLVM 2.9SVN successfully with CMake under XCode but had some workarounds needed to get to that point. 1. Building in debug mode there was one archive file dependency that looked for the release folder instead of the debug folder. 2. The install target failed to put a sudo -

Re: [CMake] Installing a helper application

2011-01-06 Thread KC Jones
Excellent approach. Thank you. KC Jones kc.jo...@skype.net SkypeId: bernalkc On Jan 6, 2011, at 5:55 AM, Ryan Pavlik wrote: > You'll need something closer to this: > > > add_executable(myapp MACOSX_BUNDLE [...]) > > find_file(helperpath [...]) > if(NOT helperpath) > message(FATAL_ERROR

Re: [CMake] CPack, fixup_bundle, macdeployqt, and QTBUG-5952

2011-01-06 Thread KC Jones
I'm running 2.8.2 - so I will upgrade now. Thanks. KC Jones kc.jo...@skype.net SkypeId: bernalkc On Jan 6, 2011, at 4:14 AM, David Cole wrote: > The fix for http://public.kitware.com/Bug/view.php?id=10020 (which is > in CMake 2.8.3) should make sure that "Resources" get copied with > frameworks

Re: [CMake] Detecting fmpich

2011-01-06 Thread David Partyka
FindMPI is getting a major facelift for CMake 2.8.4 in which finding fortran related libraries/compilers is a new feature. Stay tuned! On Thu, Jan 6, 2011 at 9:23 AM, wrote: > Hello, > > Is it possible to detect fmpich using find_package(MPI) ? > I haven't found any solution yet ... > > Best reg

Re: [CMake] building gcc with cmake

2011-01-06 Thread Bill Hoffman
On 1/6/2011 7:16 AM, luxInteg wrote: On Thursday 06 January 2011 02:11:46 Alan W. Irwin wrote: On 2011-01-06 03:02- luxInteg wrote: just curious, but I wondering if anyone on list has ever built gcc with cmake. (or at least had a go) gccxml has CMake files that build most of gcc. htt

[CMake] Detecting fmpich

2011-01-06 Thread ycollette . nospam
Hello, Is it possible to detect fmpich using find_package(MPI) ? I haven't found any solution yet ... Best regards, YC ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Pleas

Re: [CMake] Installing a helper application

2011-01-06 Thread Ryan Pavlik
You'll need something closer to this: add_executable(myapp MACOSX_BUNDLE [...]) find_file(helperpath [...]) if(NOT helperpath) message(FATAL_ERROR "Need helper app!") endif() install(TARGETS myapp BUNDLE DESTINATION . RUNTIME DESTINATION bin ) if(APPLE) install(PROGRAMS ${helperpath}

Re: [CMake] Any issues using CMAKE with virus control?

2011-01-06 Thread David Partyka
I've had problems using CMake's external project feature and Antivirus (on Windows 7). When external project would download a tarball and extract it, often it would fail because the realtime protection would still be holding on to some of the files. The compromise was to excluding realtime protecti

[CMake] Any issues using CMAKE with virus control?

2011-01-06 Thread Caron, Michael C. (US SSA)
My company has been tightening up the security of our systems and we have had some new security settings and new security software added to our machines. I've been using CMAKE to build both Linux and Windows deliverables for close to a year now with no significant problems. I tried to launch a

Re: [CMake] CPack, fixup_bundle, macdeployqt, and QTBUG-5952

2011-01-06 Thread David Cole
The fix for http://public.kitware.com/Bug/view.php?id=10020 (which is in CMake 2.8.3) should make sure that "Resources" get copied with frameworks that get pulled in during a fixup_bundle call. Are you using CMake 2.8.3? On Wed, Jan 5, 2011 at 10:20 PM, Michael Jackson wrote: > The qt_menu.nib

Re: [CMake] how to ignore errors/keep going using cmake

2011-01-06 Thread David Cole
This depends on the projects use of "message" in the CMakeLists.txt files. If a project call to message uses "FATAL_ERROR" it stops immediately and returns an error. If they use "SEND_ERROR" it continues processing and returns an error when it is done configuring. In either case, it will not gen

Re: [CMake] building gcc with cmake

2011-01-06 Thread luxInteg
On Thursday 06 January 2011 02:11:46 Alan W. Irwin wrote: > On 2011-01-06 03:02- luxInteg wrote: > > just curious, > > > > but I wondering if anyone on list has ever built gcc with cmake. > > (or at least had a go) > > I did it by hand years ago (1996 when I started with Linux and needed > t