Re: [CMake] help with cmake fortran envar

2010-11-17 Thread Arjen Markus
Hello luxInteg, you are trying to set the Fortran compiler to gfortran then? Why? Why not leave it to CMake to come up with whatever compiler is suitable? That is part of the strength of tools like CMake. Regards, Arjen On 2010-11-16 20:44, luxInteg wrote: Greetings, I am learning cmake. I

[CMake] Run compiler through another tool?

2010-11-17 Thread Hariharan
Is it possible to run the compiler and linker through another command, say "time" or a custom script? In other words, I want the compile and link steps to run " gcc" and " ld". Regards, Hariharan ___ Powered by www.kitware.com Visit other Kitware open-s

Re: [CMake] BundleUtilities

2010-11-17 Thread David Cole
On Tue, Nov 16, 2010 at 10:15 PM, David Doria wrote: > Is the goal simply to copy > ...VTK/bin/libvtkHybrid.a > into the package? > > I tried this: > INSTALL(CODE "\${VTK_DIR}/bin/libvtkHybrid.a") > > But I get: > > Parse error.  Expected a command name, got unquoted argument with text > "${VTK_DI

Re: [CMake] Run compiler through another tool?

2010-11-17 Thread Micha Renner
Am Mittwoch, den 17.11.2010, 15:07 +0530 schrieb Hariharan: > Is it possible to run the compiler and linker through another command, > say "time" or a custom script? In other words, I want the compile and > link steps to run " gcc" and " ld". > In this case you have to work with a combination of t

Re: [CMake] Run compiler through another tool?

2010-11-17 Thread David Cole
On Wed, Nov 17, 2010 at 5:50 AM, Micha Renner wrote: > Am Mittwoch, den 17.11.2010, 15:07 +0530 schrieb Hariharan: >> Is it possible to run the compiler and linker through another command, >> say "time" or a custom script? In other words, I want the compile and >> link steps to run " gcc" and " ld

[CMake] Extra include/lib paths - multiple entries

2010-11-17 Thread Adam J Richardson
Hi list, Is this a correct specification for multiple include/lib paths in environment variables? If not, what should I use instead? Sometimes it seems to work, other times not... CMAKE_INCLUDE_PATH=C:/Compilers/Includes;C:/Compilers/MinGW/include CMAKE_LIBRARY_PATH=C:/Compilers/Libs;C:/Compi

[CMake] Embedding static library in shared object library

2010-11-17 Thread santosh mahto
Hi all Q:-i have a 3 static library(say A.a B.a C.a) and i want to create my final library as .so (say Main.so ) which link + embedd all three Library.i tried TARGET_LINK_LIBRARIES but it only links to A.a B.a C.a.and dosnt append it.I want my final binary(Main.so) to include(or embedd) all three

Re: [CMake] Embedding static library in shared object library

2010-11-17 Thread Mateusz Loskot
On 17/11/10 11:33, santosh mahto wrote: Hi all Q:-i have a 3 static library(say A.a B.a C.a) and i want to create my final library as .so (say Main.so ) which link + embedd all three Library.i tried TARGET_LINK_LIBRARIES but it only links to A.a B.a C.a.and dosnt append it.I want my final binary(

Re: [CMake] Extra include/lib paths - multiple entries

2010-11-17 Thread Yngve Inntjore Levinsen
On Wednesday 17 November 2010 12:30:06 Adam J Richardson wrote: > Hi list, > > Is this a correct specification for multiple include/lib paths in > environment variables? If not, what should I use instead? Sometimes it > seems to work, other times not... > > CMAKE_INCLUDE_PATH=C:/Compilers/Inclu

[CMake] Howto to work with variables from central makefiles....

2010-11-17 Thread Thomas Lehmann
Hi all, for an automatically forced include I have provided an option like this: set(WIN32_SPEC ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/global/win32_spec.h) add_definitions(-FI ${WIN32_SPEC}) But when including this central file (find_package) the variable CMAKE_CURRENT_SOURCE_DIR changes and th

Re: [CMake] BundleUtilities

2010-11-17 Thread David Doria
Tyler, You seem to be right in that I should not escape the $, but I DID need to add "DESTINATION bin". Without it, I got a: CMake Error at CMakeLists.txt:23 (INSTALL): install FILES given no DESTINATION! This seems to work: INSTALL(FILES "${VTK_DIR}/bin/libvtkHybrid.a" DESTINATION bin) The p

Re: [CMake] Run compiler through another tool?

2010-11-17 Thread Michael Hertling
On 11/17/2010 10:37 AM, Hariharan wrote: > Is it possible to run the compiler and linker through another command, say > "time" or a custom script? In other words, I want the compile and link steps > to run " gcc" and " ld". If you're using a Makefile generator you might have a look at the rule lau

Re: [CMake] BundleUtilities

2010-11-17 Thread Michael Jackson
I tool a little different approach in my own projects. I end up "configuring" a shell script that gets run at install time (OS X Only). Inside that shell script are all the copying to the CMAKE_INSTALL_PREFIX, ensuring destination directories inside the OS X App bundle are setup (Plugins, l

[CMake] Creating a XXXConfigYYY.cmake file

2010-11-17 Thread Torri, Stephen CIV NSWCDD, W15
I have been reading email posts on goggle that says if you create a library then produce a Configcmake file rather than a Find.cmake file. That is fine but what confuses me is: 1. What do I put in it? 2. How do I install it? (e.g. Linux and Windows) 3. What google search terms should I use

Re: [CMake] Howto to work with variables from central makefiles....

2010-11-17 Thread Eric Noulard
2010/11/17 Thomas Lehmann > > Hi all, > > > > for an automatically forced include I have provided an > > option like this: > > > > set(WIN32_SPEC ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/global/win32_spec.h) May you could use an absolute reference using ${PROJECT_SOURCE_DIR}/libs/global/win32_spec

Re: [CMake] Howto to work with variables from central makefiles....

2010-11-17 Thread Thomas Lehmann
> > for an automatically forced include I have provided an > > > > option like this: > > > > > > > > set(WIN32_SPEC > ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/global/win32_spec.h) > > May you could use an absolute reference using > > ${PROJECT_SOURCE_DIR}/libs/global/win32_spec.h > > if your project

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-17 Thread K. Noel Belcourt
Hi Brad, On Nov 16, 2010, at 3:49 PM, Brad King wrote: On 11/16/2010 04:52 PM, Belcourt, K. Noel wrote: On Nov 16, 2010, at 2:50 PM, Brad King wrote: On 11/16/2010 04:24 PM, Belcourt, K. Noel wrote: which is the same list of libraries in these SUBDIRS commands in the top-level CMakeLists

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-17 Thread Brad King
On 11/17/2010 11:32 AM, K. Noel Belcourt wrote: > On Nov 16, 2010, at 3:49 PM, Brad King wrote: >> Run "make -d" to get debugging output. It is *very* verbose but can >> tell you why make chooses to run certain rules. > > It's definitely related to the presence of the SUBDIRS. Make never > con

Re: [CMake] BundleUtilities

2010-11-17 Thread David Doria
On Wed, Nov 17, 2010 at 9:32 AM, Michael Jackson wrote: > I tool a little different approach in my own projects. I end up > "configuring" a shell script that gets run at install time (OS X Only). > Inside that shell script are all the copying to the CMAKE_INSTALL_PREFIX, > ensuring destination dir

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-17 Thread Brad King
On 11/17/2010 11:51 AM, K. Noel Belcourt wrote: > It's attached. Hmm..I don't see anything jumping out at me there. On 11/17/2010 11:32 AM, K. Noel Belcourt wrote: > This works, but moving SUBDIRS(Modules) into it's lexical ordering > fails with the reported error. Do these libraries have circ

[CMake] codesourcery integration

2010-11-17 Thread Andrea Galeazzi
I'm facing the problem of using the cross compile toolchain of CodeSourcery. My host system in Windows and my target is ARM-Linux. I red this tutorial http://www.cmake.org/Wiki/CMake_Cross_Compiling and I tried to do something similar: # this one is important SET(CMAKE_SYSTEM_NAME Linux) #this o

Re: [CMake] BundleUtilities

2010-11-17 Thread Michael Jackson
On Nov 17, 2010, at 12:20 PM, Clinton Stimpson wrote: For Qt projects, a macro for creating a qt.conf file and a macro for installing Qt plugins would be nice to have in FindQt4.cmake (anyone want to take a stab at that?) To say this needs cleaned up and refactored is an understatement b

Re: [CMake] codesourcery integration

2010-11-17 Thread Rolf Eike Beer
Am Mittwoch, 17. November 2010 schrieb Andrea Galeazzi: > I'm facing the problem of using the cross compile toolchain of > CodeSourcery. My host system in Windows and my target is ARM-Linux. > I red this tutorial http://www.cmake.org/Wiki/CMake_Cross_Compiling and > I tried to do something similar:

Re: [CMake] BundleUtilities

2010-11-17 Thread Michael Jackson
On Nov 17, 2010, at 12:20 PM, Clinton Stimpson wrote: On Wednesday, November 17, 2010 09:46:23 am David Doria wrote: On Wed, Nov 17, 2010 at 9:32 AM, Michael Jackson wrote: I tool a little different approach in my own projects. I end up "configuring" a shell script that gets run at install t

Re: [CMake] codesourcery integration

2010-11-17 Thread Eric Noulard
2010/11/17 Andrea Galeazzi : > I'm facing the problem of using the cross compile toolchain of CodeSourcery. > My host system in Windows and my target is ARM-Linux. > I red this tutorial http://www.cmake.org/Wiki/CMake_Cross_Compiling and I > tried to do something similar: > # this one is important

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-17 Thread Brad King
On 11/17/2010 12:15 PM, K. Noel Belcourt wrote: > On Nov 17, 2010, at 10:02 AM, Brad King wrote: >> This tells CMake to print some verbose target dependency >> information. I bet it will report "modules" in a non-trivial >> connected component with a bunch of other libraries. Please >> send me th

Re: [CMake] VS solution folder puts first project last

2010-11-17 Thread James Bigler
On Tue, Nov 16, 2010 at 11:55 PM, Rolf Eike Beer wrote: > Am Mittwoch, 17. November 2010 schrieb James Bigler: > > Has anyone else noticed situations where VS puts the first project (as > > determined alphabetically) in a project folder as the last project? > > Yes, I have seen this when using th

Re: [CMake] VS solution folder puts first project last

2010-11-17 Thread David Cole
On Wed, Nov 17, 2010 at 1:25 PM, James Bigler wrote: > On Tue, Nov 16, 2010 at 11:55 PM, Rolf Eike Beer wrote: >> >> Am Mittwoch, 17. November 2010 schrieb James Bigler: >> > Has anyone else noticed situations where VS puts the first project (as >> > determined alphabetically) in a project folder

Re: [CMake] VS solution folder puts first project last

2010-11-17 Thread James Bigler
On Wed, Nov 17, 2010 at 11:30 AM, David Cole wrote: > On Wed, Nov 17, 2010 at 1:25 PM, James Bigler > wrote: > > On Tue, Nov 16, 2010 at 11:55 PM, Rolf Eike Beer > wrote: > >> > >> Am Mittwoch, 17. November 2010 schrieb James Bigler: > >> > Has anyone else noticed situations where VS puts the f

Re: [CMake] BundleUtilities

2010-11-17 Thread David Cole
On Wed, Nov 17, 2010 at 11:46 AM, David Doria wrote: > On Wed, Nov 17, 2010 at 9:32 AM, Michael Jackson > wrote: >> I tool a little different approach in my own projects. I end up >> "configuring" a shell script that gets run at install time (OS X Only). >> Inside that shell script are all the co

Re: [CMake] BundleUtilities

2010-11-17 Thread David Doria
> > BundleUtilities is meant to be a more general approach to packaging 3rd > party libraries. It will look at an executable, and find all of its > dependencies (the ones necessary to make the program execute) and copy the > non-system dependencies into your install directory. Clint, Great, thi

Re: [CMake] BundleUtilities

2010-11-17 Thread David Doria
> > The goal is simply this: > > - given: > -- an executable target, that happens to be a bundle app on the Mac > -- a full path to that bundle in the install tree > -- a list of plugins that you have also already installed in the bundle > -- a list of directories where to find libraries that y

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-17 Thread K. Noel Belcourt
On Nov 17, 2010, at 11:18 AM, Brad King wrote: On 11/17/2010 12:15 PM, K. Noel Belcourt wrote: On Nov 17, 2010, at 10:02 AM, Brad King wrote: This tells CMake to print some verbose target dependency information. I bet it will report "modules" in a non-trivial connected component with a bunch

Re: [CMake] How to install openbabel python bindings by using the new cmake installer (problem selecting a particular python version).

2010-11-17 Thread Hector Martinez-Seara
Hi all, Thank you for your help. I have set PYTHON_EXECUTABLE, PYTHON_INCLUDE_DIR and PYTHON_LIBRARY variables to appropriate values to Python 3.1. Now indeed the compilation works. I'm not an expert in cmake so I am afraid I can say little about changing cmake behavior, but thank you all for you

Re: [CMake] BundleUtilities

2010-11-17 Thread David Cole
Responses inline on this one... On Wed, Nov 17, 2010 at 1:56 PM, David Doria wrote: > The goal is simply this: >> >> - given: >> -- an executable target, that happens to be a bundle app on the Mac >> -- a full path to that bundle in the install tree >> -- a list of plugins that you have also

[CMake] autoconf to cmake conversion

2010-11-17 Thread luxInteg
Greetings, I am learning cmake. I am looking for a tool to converta build system fom autoconf to cmake. II came across am2cmake available at http://websvn.kde.org/trunk/KDE/kdesdk/cmake/scripts/ It is very kde3 specific, I was wondering if there is anything more generic available. tna

Re: [CMake] Howto to work with variables from central makefiles....

2010-11-17 Thread Michael Hertling
On 11/17/2010 04:56 PM, Thomas Lehmann wrote: >>> for an automatically forced include I have provided an >>> >>> option like this: >>> >>> >>> >>> set(WIN32_SPEC >> ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/global/win32_spec.h) >> >> May you could use an absolute reference using >> >> ${PROJECT_SOURCE