Re: RIF: [CMake] kdevelop problems

2006-11-03 Thread Alexander Neundorf

 Original-Nachricht 
Datum: Fri,  3 Nov 2006 03:22:50 +0100 (MET)
Von: Luigi Calori <[EMAIL PROTECTED]>
An: cmake@cmake.org
Betreff: Re: RIF: [CMake] kdevelop problems

> Bill Hoffman wrote:
> 
> > Luigi Calori wrote:
> >
> >> I' ve used CVS CMake but it seems not to solve the problem.
> >> In order to check, I' ve modified the layout project so to put c++ 
> >> and header files in a directory under the folder where the main 
> >> CMakeLists.txt resides.
> >> doing that, the Kdevelop projects files get built properly (as much 
> >> as I can tell, being ignorant of Kdevelop)
> >>
> >> So is it possible there is a problem of having sources outside 
> >> CMAKE_SOURCE_DIR
> >
> >
> > No, there should not be a problem.  I suspect the problem is not the 
> > version of CMake, but rather the version of Kdevelop.
> >
> > -Bill
> >
> Which version of kdevelop is supported?
> It seemed to me that the kdevelop.filelist generated from CMake is 
> lacking files, so I blamed CMake for not being able to generate the 
> correct list when source files are outside
> CMAKE_SOURCE_DIR

It's a limitation of KDevelop. All source files must be in a subdirectory of 
the project directory (which is CMAKE_SOURCE_DIR).
Otherwise kdevelop can't find them. That's why they are left out in the 
generated kdevelop files by CMake.
You can use it nevertheless, it's just that the quick open etc. won't work.

Alex


-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


RE: [CMake] AIX 64bit xlC

2006-11-03 Thread Brian Little
I don't know anything about AIX 64bit, but if -X 64 is a compiler flag, try
using:
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -X 64" CACHE STRING "" FORCE )
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -X 64" CACHE STRING "" FORCE )

I know that is how I've added compiler flags to MSVS builds.

Also, http://www.cmake.org/Wiki/CMake_Useful_Variables is a great resource.

Brian Little

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian
Macy
Sent: Friday, November 03, 2006 12:02 AM
To: cmake@cmake.org
Subject: [CMake] AIX 64bit xlC

Hi,

I'm trying to do AIX xlC 64bit builds.  I think I'm good except for the 
"-X 64" flag for AR to work with 64bit object files.  I couldn't find 
anything in the docs to allow me to set that.

Brian Macy


___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


RE: [CMake] generate VC project w/o VS installed.

2006-11-03 Thread Brian Little








I am no CMake expert, but I don’t
believe you will be able to generate for a build tool you do not have
installed.  When you first run CMake for a new build tool it performs some
checks on the compiler (like determining the size of void *) which requires it
to actually compile a small program.  So, without the tool, I believe it
will not work.

 



Brian Little











From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chen Li
Sent: Thursday, November 02, 2006
10:00 PM
To: cmake@cmake.org
Subject: [CMake] generate VC
project w/o VS installed.



 



HI, all.





 





How can I generate VC project and solution files on
machine WITHOUT Visual Studio installed?





 





If I run "cmake .", I'll get error message like this:





 





CMake Error: CMake was unable to find a build program corresponding to
"Visual Studio 6".  CMAKE_MAKE_PROGRAM is not set.  You
probably need to select a different build tool.
CMake Error: Could not find cmake module file:D:/chenli/tmp/a/CMakeFiles/CMakeCCompiler.cmake

CMake Error: Could not find cmake module
file:D:/chenli/tmp/a/CMakeFiles/CMakeCXXCompiler.cmake
 





I've also tried using -G parameter to specify generator to "Visual
Studio 8 2005", but no luck.





 





I'm really new to cmake. So if this question is basic, please forgive
me. I've read FAQ and googled, still no answer :(





 





Thanks.





-Chen








___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] generate VC project w/o VS installed.

2006-11-03 Thread Sylvain Benner



你好!
 
If this feature is not directly supported by CMake, 
there is a work around. 
 
Run CMake in an environment with Visual Studio 
installed and back up the cache files (folderCMakeFiles and file 
CMakeCache.txt).
Then copy these files on your computer which does 
not have Visual Studio installed. It should bypass the compiler tests 
etc...
I use it to generate XCode projects on a Windows XP 
OS and it works pretty well.
 
Sylvain
 
 

  - Original Message - 
  From: 
  Chen Li 
  
  To: cmake@cmake.org 
  Sent: Friday, November 03, 2006 3:59 
  AM
  Subject: [CMake] generate VC project w/o 
  VS installed.
  
  HI, all.
   
  How can I generate VC project and solution files on machine WITHOUT 
  Visual Studio installed?
   
  If I run "cmake .", I'll get error message like this:
   
  CMake Error: CMake was unable to find a build program corresponding to 
  "Visual Studio 6".  CMAKE_MAKE_PROGRAM is not set.  You probably 
  need to select a different build tool.CMake Error: Could not find cmake 
  module file:D:/chenli/tmp/a/CMakeFiles/CMakeCCompiler.cmake CMake Error: 
  Could not find cmake module 
  file:D:/chenli/tmp/a/CMakeFiles/CMakeCXXCompiler.cmake 
  I've also tried using -G parameter to specify generator to "Visual Studio 
  8 2005", but no luck.
   
  I'm really new to cmake. So if this question is basic, please forgive me. 
  I've read FAQ and googled, still no answer :(
   
  Thanks.
  -Chen
  
  

  ___CMake mailing 
  listCMake@cmake.orghttp://www.cmake.org/mailman/listinfo/cmake
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

re: [CMake] Mac application bundles & resources

2006-11-03 Thread Axel Roebel
On Friday 03 November 2006 14:03, [EMAIL PROTECTED] wrote:

> Message: 1
> Date: Thu, 2 Nov 2006 21:44:32 +
> From: Matthew J Smith <[EMAIL PROTECTED]>
> Subject: [CMake] Mac application bundles & resources
> To: cmake@cmake.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi everyone,
>
> I've been approached to get a Mac application bundle built for the
> Speedcrunch calculator app (speedcrunch.digitalfanatics.org).  The
> app uses Qt 4 and is normally built using qmake, but the developers
> have started using CMake, which for the X11 install model (binaries
> in /usr/bin, resources in /usr/share) works fine.  However, although
> I can get CMake to build an application bundle, I can't find any
> instructions as to how to get the resources to install in the
> Resources directory within the bundle.
>
> Does CMake even have this feature, and if so, can anyone tell me how
> to do this?  I'm using version 2.4.3.  I've attached my CMakeLists.txt.
>
> Matt Smith
> --
>
> http://www.blogistan.co.uk/qt/
>

I don't think that exists. 

Here a hand made solution:

What I do to install an icon file is

SET(EXECUTABLE_OUTPUT_PATH ...)
ADD_EXECUTABLE(svp_kernel_app  MACOSX_BUNDLE  ${prgSOURCES} 
${SHOW_VERSION_PRG_K} )
ADD_CUSTOM_TARGET(svp_kernel COMMAND  cp  
${CMAKE_CURRENT_SOURCE_DIR}/../../distribution/supervp.icns 
${EXECUTABLE_OUTPUT_PATH}/supervp${DEBUGEXT}.app/Contents/
Resources)
ADD_DEPENDENCIES(svp_kernel svp_kernel_app)

This means a bundle target is used to create the binaries in the app
and the custom target is used to copy the icon. The only target I use during 
the build stage
is svp_kernel which  first creates the bundle binary and then copies the icon.

You may as well try to use configure_file to put the resources in place.
It seems to me cmake is creating the bundle directory during cmake run time
and the make system will never touch these directories later again.
So I suppose  you can call configure_file to put
all resources in the right place when running cmake.

You need to know where and how to put them correctly
using command line tools though.


-- 
Axel Roebel
IRCAM Analysis/Synthesis Team
Phone: ++33-1-4478 4845 | Fax: ++33-1-4478 1540
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] AIX 64bit xlC

2006-11-03 Thread Brian Macy

Brian,

Thanks for the quick response.  It is a flag for /usr/ccs/bin/ar to 
build libraries.


Brian Macy



Brian Little wrote:

I don't know anything about AIX 64bit, but if -X 64 is a compiler flag, try
using:
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -X 64" CACHE STRING "" FORCE )
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -X 64" CACHE STRING "" FORCE )

I know that is how I've added compiler flags to MSVS builds.

Also, http://www.cmake.org/Wiki/CMake_Useful_Variables is a great resource.

Brian Little

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian
Macy
Sent: Friday, November 03, 2006 12:02 AM
To: cmake@cmake.org
Subject: [CMake] AIX 64bit xlC

Hi,

I'm trying to do AIX xlC 64bit builds.  I think I'm good except for the 
"-X 64" flag for AR to work with 64bit object files.  I couldn't find 
anything in the docs to allow me to set that.


Brian Macy


___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

  



___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] CPack RPM support

2006-11-03 Thread Eric Noulard

I'd like to know if someone is working on
RPM generator for CPack and if yes
in which state is this generator?

I would be interested in both source and binary RPM support.


--
Erk
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] cache variable prevents FIND_LIBRARY to be called again :/

2006-11-03 Thread Alan W. Irwin

On 2006-11-01 16:39-0500 Tristan Carel wrote:


On 11/1/06, Tristan Carel <[EMAIL PROTECTED]> wrote:

On 11/1/06, Brad King <[EMAIL PROTECTED]> wrote:
> SET(MYLIB)
> FIND_LIBRARY(MYLIB ...)

It doesn't seem to work, the cache value is not updated.

Ok it works if I set

SET(PYTHON_LIBRARIES PYTHON_LIBRARIES-NOTFOUND)

which is logic!

Thanks to Brad & Alan


Brad, would it be easier to treat all FALSE values the same way (as you
assumed above)?

What I mean by FALSE is the same things the IF(NOT variable) considers to
be TRUE.  According to the documentation that is

"IF(NOT variable)

   True if the variable's value is empty, 0, N, NO, OFF, FALSE, NOTFOUND,
   or -NOTFOUND."

As you found out, it can be confusing if FIND_XXX makes distinctions between
these various kinds of FALSE values.  Whatever the final decision on this
issue, please make sure the documentation reflects that decision.

Alan
__
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__

Linux-powered Science
__
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] cache variable prevents FIND_LIBRARY to be called again :/

2006-11-03 Thread Bill Hoffman

Alan W. Irwin wrote:

On 2006-11-01 16:39-0500 Tristan Carel wrote:


On 11/1/06, Tristan Carel <[EMAIL PROTECTED]> wrote:

On 11/1/06, Brad King <[EMAIL PROTECTED]> wrote:
> SET(MYLIB)
> FIND_LIBRARY(MYLIB ...)

It doesn't seem to work, the cache value is not updated.

Ok it works if I set

SET(PYTHON_LIBRARIES PYTHON_LIBRARIES-NOTFOUND)

which is logic!

Thanks to Brad & Alan


Brad, would it be easier to treat all FALSE values the same way (as you
assumed above)?

What I mean by FALSE is the same things the IF(NOT variable) considers to
be TRUE.  According to the documentation that is

"IF(NOT variable)

   True if the variable's value is empty, 0, N, NO, OFF, FALSE, 
NOTFOUND,

   or -NOTFOUND."

As you found out, it can be confusing if FIND_XXX makes distinctions 
between

these various kinds of FALSE values.  Whatever the final decision on this
issue, please make sure the documentation reflects that decision.


The NOTFOUND has to remain special for the FIND_XXX.   It is in the 
current CVS docs for
the command.   The reason is you may want to set the variable to a FALSE 
value that will stop the
FIND_XXX from looking for some reason.   For example, I am running a 
dashboard and I know there
is a bad version of some software on that machine, and for some reason I 
can not fix that software.
I can preload the cache with the variable set to FALSE, and this will 
keep the FIND_XXX stuff from

finding the bad software on the machine when cmake is run.

-Bill

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake