Re: [CMake] granular install advice

2010-12-17 Thread luxInteg
On Friday 17 December 2010 22:03:12 Michael Hertling wrote: > Besides, you can't specify the files for INSTALL(FILES ...) using the > '*' and other globbing characters as they are meaningful only for the > shell or specialized CMake commands like FILE(GLOB ...). > ( er I sort of suspected you

[CMake] CheckFortranFunctionExists for dummies

2010-12-17 Thread luxInteg
Greetings I want to learn to use CheckFortranFunctionExists.cmake. I am assuming it works as CheckFunctionExist.cmake. The cmake documentation gave the following description:- - CheckFortranFunctionExists: macro which checks if the For

[CMake] Swig Module Support for Partial Build

2010-12-17 Thread Bill Spotz
I have a use case where I would like to run swig on a swig interface file but not compile the resulting wrapper file. Actually, all I want to do is generate the (in this case python) shadow file, but swig generates both at the same time. Is there a way to do this under CMake? A Makefile target

Re: [CMake] Ensuring spaces in CFLAGS reach Visual Studio project files

2010-12-17 Thread David Cole
Have you tried add_definitions for -D flags? I'm not sure what's required for getting spaces-in-the-value across, but I think it's possible. Maybe somebody who's done it more recently than me can speak up here? Alternatively, consider using a configured header file that gets included in the plac

[CMake] Ensuring spaces in CFLAGS reach Visual Studio project files

2010-12-17 Thread Clifford Yapp
I have a situation where I need to pass strings with spaces in them as definitions in CFLAGS, e.g. SET(CMAKE_C_CFLAGS -DINPUT_STRING=\\\"first\\ second\\\"") This is NOT working for Visual Studio, which is apparently quite picky about this - it apparently needs to end up with something like: IN

Re: [CMake] granular install advice

2010-12-17 Thread Michael Hertling
On 12/17/2010 03:31 PM, luxInteg wrote: > Greetings, > > I am learning cmake. > > If I were to have some homebrewed "ModulesForCMakeIdiots.cmake" from my > learning project in say ${CMAKE_SOURCE_DIR}/modules > and I set this command:- > > install(FILES ${CMAKE_SOURCE_DIR}/modules/*.cmake /usr

Re: [CMake] Questions about FFTW as an External Project within ITK

2010-12-17 Thread Tyler Roscoe
On Fri, Dec 17, 2010 at 10:40:30AM -0600, kent williams wrote: > install(FILES ${CMAKE_BINARY_DIR}/FFTW/lib/libfftw3.a > DESTINATION ${CMAKE_INSTALL_PREFIX}/lib) > install(FILES ${CMAKE_BINARY_DIR}/FFTW/include/fftw3.h > DESTINATION ${CMAKE_INSTALL_PREFIX}/include) > > I'm thinking thats kind of a

[CMake] Questions about FFTW as an External Project within ITK

2010-12-17 Thread kent williams
I've got a 'Work In Progress' patch for the ITK CMake build system that builds FFTW as an external project. I've got a few CMake questions about how to go about finishing it. 1. When I build FFTW using ExternalProject_add, it does a local install -- The prefix directory is ${CMAKE_BINARY_DIR}/FFT

[CMake] BLAS/atlas linux linker flags

2010-12-17 Thread luxInteg
Greetings, I am learning cmake. My computer has these:- cpu: -amd64 OS: -linux64 bit BLAS: -atlas3.9.32 compiler: -gcc (gcc, gfortran, g++) I had a look at FindBLAS.cmake. Unfortunately I cannot see where the linker flags for a standard linuxPC setup such as mine a

[CMake] granular install advice

2010-12-17 Thread luxInteg
Greetings, I am learning cmake. If I were to have some homebrewed "ModulesForCMakeIdiots.cmake" from my learning project in say ${CMAKE_SOURCE_DIR}/modules and I set this command:- install(FILES ${CMAKE_SOURCE_DIR}/modules/*.cmake /usr/local/someplace ) do be done AT INSTALL time (i.e. I

[CMake] Saving user settings with xcode generator

2010-12-17 Thread Johan Björk
Hi everyone, I haven't been able to find much information on this topic, so any suggestions would be greatly appreciated. When CMake regenerates the XCode project files, it correctly saves the user settings (foo.pbxuser) (contains things like executable arguments, environment variables and the suc