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

2010-11-16 Thread Rolf Eike Beer
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 the new FOLDER property for targets. I see this behaviour within the

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

2010-11-16 Thread Michael Hertling
On 11/13/2010 03:08 PM, Marcus D. Hanwell wrote: > On Nov 13, 2010, at 8:57 AM, Michael Hertling wrote: > >> On 11/12/2010 02:13 PM, Hector Martinez-Seara wrote: >>> Dear all, >>> I'm trying to install openbabel in linux which in its last version >>> (2.3.0) uses cmake installer. I haven't been ab

Re: [CMake] BundleUtilities

2010-11-16 Thread Tyler Roscoe
On Tue, Nov 16, 2010 at 10:15:28PM -0500, 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") More like: INSTALL(FILES "${VTK_DIR}/bin/libvtkHybrid.a") tyler ___

Re: [CMake] BundleUtilities

2010-11-16 Thread David Doria
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_DIR}/bin/libvtkHybrid.a". I made a home for this here: http://www.vtk.org/

Re: [CMake] Compiling header files

2010-11-16 Thread David Doria
> Also use VS IDE to make sure the library is listed. The library is indeed listed in "Additional Dependencies" of the linker for the executable target. > What symbols? Try running dumpbin /symbols OSC.lib. I figured it out - I had to link to "winmm" to get the symbol: symbol __imp__timeGetTime

Re: [CMake] Compiling header files

2010-11-16 Thread Bill Hoffman
On 11/16/2010 7:19 PM, David Doria wrote: Hm, it works correctly in Linux, but I still get a bunch of error LNK2019: unresolved external symbol What symbols? Try running dumpbin /symbols OSC.lib. Also use VS IDE to make sure the library is listed. Everything look ok? Any thoughts? Looks

Re: [CMake] Compiling header files

2010-11-16 Thread David Doria
Hm, it works correctly in Linux, but I still get a bunch of error LNK2019: unresolved external symbol errors in Windows. The only difference I see is that the .lib file gets created in a subdirectory of bin/ bin/Debug/OSC.lib (or bin/Release/OSC.lib) vs the .a file which gets created in bin di

[CMake] VS solution folder puts first project last

2010-11-16 Thread James Bigler
Has anyone else noticed situations where VS puts the first project (as determined alphabetically) in a project folder as the last project? CMakePredefinedTargets -- PACKAGE -- RUN_TESTS -- ZERO_CHECK -- INSTALL I'm using VS 2008 SP 1 with CMake 2.8.3. I've verified this with a simple project and

Re: [CMake] header files with visual studio

2010-11-16 Thread Oliver kfsone Smith
Michael Jackson said the following on 11/15/2010 11:56 AM: Ahh. It is a bit clearer the tract you are taking. What I am suggesting is that you only have to run the "scanner" once and keep the results in CMake syntax files so that CMake can just simply re-use the list. As you add headers during

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Brad King
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.txt file (in reverse order). There's a single

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread K. Noel Belcourt
On Nov 16, 2010, at 2:48 PM, Eric Noulard wrote: 2010/11/16 Belcourt, K. Noel : On Nov 16, 2010, at 2:05 PM, Belcourt, K. Noel wrote: On Nov 16, 2010, at 1:59 PM, Brad King wrote: On 11/16/2010 01:11 PM, K. Noel Belcourt wrote: I've attached my project's top-level Makefile. I'm trying

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Belcourt, K. Noel
On Nov 16, 2010, at 2:48 PM, Eric Noulard wrote: 2010/11/16 Belcourt, K. Noel : On Nov 16, 2010, at 2:05 PM, Belcourt, K. Noel wrote: On Nov 16, 2010, at 1:59 PM, Brad King wrote: On 11/16/2010 01:11 PM, K. Noel Belcourt wrote: I've attached my project's top-level Makefile. I'm trying

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Belcourt, K. Noel
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.txt file (in reverse order). There's a single library in each of these subdirs of the same lower-cased name.

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Brad King
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.txt file (in reverse order). There's a single > library in each of these subdirs of the same lower-cased name. > > ... > SUBDIRS(Modules) > SUBDIRS(MP

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Eric Noulard
2010/11/16 Belcourt, K. Noel : > > On Nov 16, 2010, at 2:05 PM, Belcourt, K. Noel wrote: > >> On Nov 16, 2010, at 1:59 PM, Brad King wrote: >> >>> On 11/16/2010 01:11 PM, K. Noel Belcourt wrote: I've attached my project's top-level Makefile.  I'm trying to force all the modules in th

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Belcourt, K. Noel
On Nov 16, 2010, at 2:05 PM, Belcourt, K. Noel wrote: On Nov 16, 2010, at 1:59 PM, Brad King wrote: On 11/16/2010 01:11 PM, K. Noel Belcourt wrote: I've attached my project's top-level Makefile. I'm trying to force all the modules in the project to build first so I created a single library

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Belcourt, K. Noel
On Nov 16, 2010, at 1:59 PM, Brad King wrote: Hi Noel, On 11/16/2010 01:11 PM, K. Noel Belcourt wrote: I've attached my project's top-level Makefile. I'm trying to force all the modules in the project to build first so I created a single library called modules that contains all my Fortran 90

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Brad King
Hi Noel, On 11/16/2010 01:11 PM, K. Noel Belcourt wrote: > I've attached my project's top-level Makefile. I'm trying to force > all the modules in the project to build first so I created a single > library called modules that contains all my Fortran 90 module files. > I'm invoking the Make

Re: [CMake] setting the COMPILE_FLAGS property causes VS to start compiling header files

2010-11-16 Thread James Bigler
On Tue, Nov 16, 2010 at 12:27 AM, Rolf Eike Beer wrote: > Am Dienstag, 16. November 2010 schrieb Eric Noulard: > > 2010/11/15 James Bigler > > > > > If I set a COMPILE_FLAGS property on a header file via > > > set_source_files_properties, CMake decides that these header files now > > > need to b

Re: [CMake] Compiling header files

2010-11-16 Thread James C. Sutherland
Be sure that you have INCLUDE_DIRECTORIES( [path to Internal.h and External.h] ) set. James On Tue, Nov 16, 2010 at 12:24 PM, David Doria wrote: > Ryan, > > The issue is that these headers are only used internally to this > collection of files, so I don't want to have to include them in my >

Re: [CMake] Compiling header files

2010-11-16 Thread David Doria
Ryan, The issue is that these headers are only used internally to this collection of files, so I don't want to have to include them in my code. Here is a skeleton: The files I've been given -- External.h External.cpp Internal.h (used by External) Internal.cpp My files MyCode

Re: [CMake] BundleUtilities

2010-11-16 Thread David Cole
On Tue, Nov 16, 2010 at 2:06 PM, David Doria wrote: > On Tue, Nov 16, 2010 at 1:35 PM, Michael Jackson > wrote: >> I think we used Qt as a basis because lots of people at the time were asking >> for it. Probably the simplest to demonstrate would be an example that builds >> a dynamic library and

Re: [CMake] Compiling header files

2010-11-16 Thread David Cole
If you have "unresolved external" errors, then you are (most likely) missing a target_link_libraries call -- find out what library those symbols are built into, and link to that library. On Tue, Nov 16, 2010 at 2:03 PM, David Doria wrote: > I am trying to use ADD_LIBRARY to create a .lib file fr

Re: [CMake] Compiling header files

2010-11-16 Thread Ryan Pavlik
Is this a library that has built successfully before with another build system? Has this application been built successfully before? For instances where the actual implementation is in the .h file, you usually must make sure you #include that header file in a cpp in your own application (the app l

Re: [CMake] BundleUtilities

2010-11-16 Thread David Doria
On Tue, Nov 16, 2010 at 1:35 PM, Michael Jackson wrote: > I think we used Qt as a basis because lots of people at the time were asking > for it. Probably the simplest to demonstrate would be an example that builds > a dynamic library and an executable that uses that library so therefor it > must b

[CMake] Compiling header files

2010-11-16 Thread David Doria
I am trying to use ADD_LIBRARY to create a .lib file from a collection of .cpp and .h files. If I do: ADD_LIBRARY(LibraryName AllOfTheCPPFiles.cpp) and then try to link against that library, I get many missing-function type linker errors. I looked in the .h files and many of them have actual func

Re: [CMake] help with cmake fortran envar

2010-11-16 Thread Rolf Eike Beer
Am Dienstag, 16. November 2010 schrieb luxInteg: > Greetings, > > I am learning cmake. > > > I have a fortran only project with some source files with f77 routines to > compile, My CMakeLists.txt in the projects base directory has the > following lines > > set(CMAKE_Fortran_COMPILER gfort

[CMake] help with cmake fortran envar

2010-11-16 Thread luxInteg
Greetings, I am learning cmake. I have a fortran only project with some source files with f77 routines to compile, My CMakeLists.txt in the projects base directory has the following lines set(CMAKE_Fortran_COMPILER gfortran) ENABLE_LANGUAGE(Fortran) but running cmake ends li

Re: [CMake] BundleUtilities

2010-11-16 Thread Michael Jackson
I think we used Qt as a basis because lots of people at the time were asking for it. Probably the simplest to demonstrate would be an example that builds a dynamic library and an executable that uses that library so therefor it must be packaged with the executable. Were you wanting to write

[CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread K. Noel Belcourt
Hi, I've attached my project's top-level Makefile. I'm trying to force all the modules in the project to build first so I created a single library called modules that contains all my Fortran 90 module files. I'm invoking the Makefile explicitly passing the modules as the target to build

Re: [CMake] ARCHIVE_OUTPUT_DIRECTORY seems to not work

2010-11-16 Thread Michael Hertling
On 11/16/2010 06:18 PM, Andrea Galeazzi wrote: > I'm trying to compile a static library named libkernel.a into a custom > path. I tried to set ARCHIVE_OUTPUT_DIRECTORY in two ways: > 1: > set_property(TARGET PROPERTY ARCHIVE_OUTPUT_DIRECTORY > "O:/kernel/${CMAKE_SYSTEM_NAME}/${CMAKE_BUILD_TYPE}")

Re: [CMake] Merging a project from autoconf and GNUMakefiles

2010-11-16 Thread Alan W. Irwin
On 2010-11-16 09:35-0500 Torri, Stephen CIV NSWCDD, W15 wrote: I am trying to merge a project that was using autoconf and GNUMakefiles. When you use automake you can build static libraries in sub directories and then link them together into one shared library in the end that was install. This

Re: [CMake] ARCHIVE_OUTPUT_DIRECTORY seems to not work

2010-11-16 Thread Rolf Eike Beer
Am Dienstag, 16. November 2010 schrieb Andrea Galeazzi: > I'm trying to compile a static library named libkernel.a into a custom > path. I tried to set ARCHIVE_OUTPUT_DIRECTORY in two ways: > 1: > set_property(TARGET PROPERTY ARCHIVE_OUTPUT_DIRECTORY > "O:/kernel/${CMAKE_SYSTEM_NAME}/${CMAKE_BUILD_

[CMake] ARCHIVE_OUTPUT_DIRECTORY seems to not work

2010-11-16 Thread Andrea Galeazzi
I'm trying to compile a static library named libkernel.a into a custom path. I tried to set ARCHIVE_OUTPUT_DIRECTORY in two ways: 1: set_property(TARGET PROPERTY ARCHIVE_OUTPUT_DIRECTORY "O:/kernel/${CMAKE_SYSTEM_NAME}/${CMAKE_BUILD_TYPE}") message("library output: ${ARCHIVE_OUTPUT_DIRECTORY}")

Re: [CMake] CPack general question and example

2010-11-16 Thread Eric Noulard
2010/11/16 David Doria : > Great, it's working.  The only thing that was required was: > > SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "David Doria") > > Here is the working example: > http://www.cmake.org/Wiki/CMake/CPack/Examples/Linux/DEB > > The page you sent > (http://www.vtk.org/Wiki/CMake:CPackPacka

Re: [CMake] Eciipse and multiple configuration

2010-11-16 Thread Philip Lowman
You really can't, unfortunately because only one configuration is possible per CMake build directory with the Makefile generator. Most people set CMAKE_BUILD_TYPE to Debug when using the Eclipse CDT4 Generator so they can debug. If you need to test regularly with release binaries, one solution is

[CMake] BundleUtilities

2010-11-16 Thread David Doria
Hi all, I found the Qt example here: http://www.itk.org/Wiki/BundleUtilitiesExample http://www.itk.org/Wiki/images/2/25/QtTest-Package-Example.zip The two INSTALL commands seem fairly complicated - is there not a way to do all of that in the project-to-be-included's cmake configuration so that a

Re: [CMake] CPack general question and example

2010-11-16 Thread David Doria
Great, it's working. The only thing that was required was: SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "David Doria") Here is the working example: http://www.cmake.org/Wiki/CMake/CPack/Examples/Linux/DEB The page you sent (http://www.vtk.org/Wiki/CMake:CPackPackageGenerators#DEB_.28UNIX_only.29) has a

[CMake] Eciipse and multiple configuration

2010-11-16 Thread Andrea Galeazzi
I followed the tutorial at http://www.cmake.org/Wiki/Eclipse_CDT4_Generator in order to generate an Eclipse project. The only difference is that I select eclipseCDT - MiinGW Makefiles instead of eclipseCDT -Unix Makefiles". What I don't understand is how can I manage multiple configurations in

Re: [CMake] Searching for an undefined symbol in library

2010-11-16 Thread Michael Wild
On 11/15/2010 06:41 PM, Marek Szuba wrote: > On Mon, 15 Nov 2010 12:00:04 -0500 > cmake-requ...@cmake.org wrote: > >> How do you select which of the libraries to use? Based on your >> Fortran compiler? > To be exact, based on the Fortran compiler used to build the > binary-only library. > >> If s