Re: [CMake] Why is XXX_INCLUDE_DIRS plural and should it be deep?

2012-12-14 Thread esatel
I see the advantages. I think I will do what you suggest for languages. As far as cascading, I see it both ways and I think I'll be more productive if I abandon the idea that there is a best practice for this. It isn't THAT hard to make it right either way. If you know your dependencies (e.g. HD

Re: [CMake] Question on ExternalProject_Add and different dependency directives

2012-12-14 Thread David Cole
On Fri, Dec 7, 2012 at 2:20 PM, Bill Katz wrote: > Hi, > > I love the ExternalProject_Add module and use it extensively in an > open-source build system I'm developing for our apps: > > http://github.com/janelia-flyem/buildem > > The idea is to make a bui

Re: [CMake] system dependent unsaturated dependencies

2012-12-14 Thread Alexander Neundorf
On Friday 14 December 2012, Witold E Wolski wrote: > Hi, > > Just run into a problem trying to build a project using cmake on a special > linux distribution: > My project depends on cppunit. I find the cppunit lib using find_library > and the project builds nicely on my machine. > However, on a di

Re: [CMake] CMake and Photran

2012-12-14 Thread Alexander Neundorf
On Friday 14 December 2012, Dick Munroe wrote: > I'm using CMake to build a project with multiple sub-projects each > producing an executable and would love to be able to use Eclipse/Photran > on CentOS to be able to do some debugging in the production environment > we use rather than going to make

Re: [CMake] Looking for a good FindHDF5.cmake module

2012-12-14 Thread Witold E Wolski
Hi Michael, Can you point me to the file please? I do not need the MPI part. I do develop on linux. best Witold -- Witold Eryk Wolski Triemlistrasse 155 8047 Zuerich -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.htm

Re: [CMake] How to import platform-independent library with add_library()?

2012-12-14 Thread Alexander Neundorf
On Friday 14 December 2012, Reza Housseini wrote: > On Fri, Dec 14, 2012 at 11:47 AM, Andreas Pakulat wrote: > > Hi, > > > > On Fri, Dec 14, 2012 at 11:16 AM, Reza Housseini wrote: > >> Hello Guys > >> > >> I try to import a library and was now wondering if there's a > >> platform-independent

[CMake] Can I create an iOS unit test target for XCode (OCUnit) with CMake?

2012-12-14 Thread Matt M .
I currently use CMake to create my an xcode project for iOS, for both my static libs and application target. Now I would like to create the unit test target from CMake as well, but haven't found any resources on whether CMake supports this or how to create the octest target. Can I create this fr

Re: [CMake] Looking for a good FindHDF5.cmake module

2012-12-14 Thread Michael Jackson
I have one that I use in my projects as long as you don't need to find all the MPI versions. ___ Mike JacksonPrincipal Software Engineer BlueQuartz SoftwareDayton, Ohio mike.jack...@bluequartz.n

[CMake] CMake 2.8.10 + older GCC + -flto

2012-12-14 Thread Gregory Peele ARA/VHD
Hi all, I recently upgraded to CMake 2.8.10. I'm seeing failures in try/compile (notably in CHECK_INCLUDE_FILES called from FindThreads.cmake) where it is automatically applying -flto to the compile line even though my target compiler (GCC 4.1.3) most certainly doesn't support it and my own fl

[CMake] CMake and Photran

2012-12-14 Thread Dick Munroe
I'm using CMake to build a project with multiple sub-projects each producing an executable and would love to be able to use Eclipse/Photran on CentOS to be able to do some debugging in the production environment we use rather than going to make/gdb directly as we currently do but I've been complet

[CMake] Adding Platform files

2012-12-14 Thread Tim Gallagher
Hi, I have a folder inside my code repository we use to store custom modules and that folder was added to the search path. Inside that folder I added one called Platform/ and put a custom platform file in there. But CMake says it can't find the platform file. Is it possible to add custom plat

[CMake] system dependent unsaturated dependencies

2012-12-14 Thread Witold E Wolski
Hi, Just run into a problem trying to build a project using cmake on a special linux distribution: My project depends on cppunit. I find the cppunit lib using find_library and the project builds nicely on my machine. However, on a different machine with a different linux distribution I run into a

Re: [CMake] Looking for a good FindHDF5.cmake module

2012-12-14 Thread Trevor Clarke
https://opticks.svn.sourceforge.net/svnroot/opticks/branches/future/OPTICKS-1177/trunk/Code/application/cmake/Modules/FindHdf5.cmake try that one. the overall license is lgpl 2.1 but I can push that one file out as public domain since it's pretty straightforward On Fri, Dec 14, 2012 at 10:01 AM,

[CMake] Looking for a good FindHDF5.cmake module

2012-12-14 Thread Witold E Wolski
Hi, I am looking for a FindHDF5.cmake module which I could ship with my project. Thx Witold -- Witold Eryk Wolski Triemlistrasse 155 8047 Zuerich -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

Re: [CMake] How to extract the directory path from find_library ?

2012-12-14 Thread Mateusz Loskot
On 14 December 2012 13:32, Rolf Eike Beer wrote: > Am , schrieb Witold E Wolski: >> >> Hi, >> >> I am using >> >> FIND_LIBRARY(CPPUNIT_LIBRARY NAMES cppunit HINTS >> ${CPPUNIT_INCLUDE_DIR}/../lib) >> >> >> to find library locations. But what I am needing is the directory >> containing the lib and

Re: [CMake] Using an alternative version of a tool during the build of a project

2012-12-14 Thread Cosmere Infahm
Just wanted to know if there was a better way other than "fixing" the path in the CMakeLists.txt for the project. For now this what I intend to try. -- On Fri, Dec 14, 2012 at 1:03 PM, Rolf Eike Beer wrote: > Am , schrieb Cosmere Infahm: > > Hello, >> >> I have a project that depends on autoco

Re: [CMake] How to extract the directory path from find_library ?

2012-12-14 Thread Witold E Wolski
Hi Eike, Thx for the good advice. Witold On 14 December 2012 14:32, Rolf Eike Beer wrote: > Am , schrieb Witold E Wolski: > > Hi, >> >> I am using >> >> FIND_LIBRARY(CPPUNIT_LIBRARY NAMES cppunit HINTS >> ${CPPUNIT_INCLUDE_DIR}/../lib) >> >> >> to find library locations. But what I am needing

Re: [CMake] How to extract the directory path from find_library ?

2012-12-14 Thread Rolf Eike Beer
Am , schrieb Witold E Wolski: Hi, I am using FIND_LIBRARY(CPPUNIT_LIBRARY NAMES cppunit HINTS ${CPPUNIT_INCLUDE_DIR}/../lib) to find library locations. But what I am needing is the directory containing the lib and not the full path. How do I get it? cmake --help-command get_filename_compone

[CMake] How to extract the directory path from find_library ?

2012-12-14 Thread Witold E Wolski
Hi, I am using FIND_LIBRARY(CPPUNIT_LIBRARY NAMES cppunit HINTS ${CPPUNIT_INCLUDE_DIR}/../lib) to find library locations. But what I am needing is the directory containing the lib and not the full path. How do I get it? cheers -- Witold Eryk Wolski Triemlistrasse 155 8047 Zuerich -- Powere

Re: [CMake] Xcode Archiving on iOS and OSX

2012-12-14 Thread Jamie Hales
Apologies, I hit send before I was ready - I tried setting various attributes - set(CMAKE_XCODE_ATTRIBUTE_INSTALL_PATH "test") set(LIB_INSTALL_DIR, ${CMAKE_INSTALL_PREFIX}) set(LIBRARY_OUTPUT_DIRECTORY, ${CMAKE_INSTALL_PREFIX}) But this doesn't seem to make any difference. Is anyone aware of a

[CMake] Xcode Archiving on iOS and OSX

2012-12-14 Thread Jamie Hales
Hi, I'm currently trying to change my existing multiple project setup (manually maintaining makefiles, vsproj and xcodeproj) for a single cmake solution. So far it's going well, I have the OSX and iOS targets up and running correctly when running directly on the device, but I'm having issues w

Re: [CMake] Using an alternative version of a tool during the build of a project

2012-12-14 Thread Rolf Eike Beer
Am , schrieb Cosmere Infahm: Hello, I have a project that depends on autoconf 2.68 or later. But the default version of autoconf on my build distro is older. So I have private version of autoconf 2.68 that I would like to build and use to build my project. What is the recommended approach t

[CMake] Using an alternative version of a tool during the build of a project

2012-12-14 Thread Cosmere Infahm
Hello, I have a project that depends on autoconf 2.68 or later. But the default version of autoconf on my build distro is older. So I have private version of autoconf 2.68 that I would like to build and use to build my project. What is the recommended approach to forcing the use of the private ve

Re: [CMake] Can not find test to add properties to:

2012-12-14 Thread David Cole
NAME and COMMAND are keywords that were added at the same time in one of the early CMake 2.8 versions... WORKING_DIRECTORY was first added as an argument to add_test in CMake 2.8.3. You should be able to run the latest version of CMake: just download it from http://cmake.org/cmake/resources/softw

Re: [CMake] How to import platform-independent library with add_library()?

2012-12-14 Thread Reza Housseini
On Fri, Dec 14, 2012 at 11:47 AM, Andreas Pakulat wrote: > Hi, > > On Fri, Dec 14, 2012 at 11:16 AM, Reza Housseini > wrote: >> Hello Guys >> >> I try to import a library and was now wondering if there's a >> platform-independent way? > > Not in the sense that CMake would handle this for you mag

Re: [CMake] How to import platform-independent library with add_library()?

2012-12-14 Thread Andreas Pakulat
Hi, On Fri, Dec 14, 2012 at 11:16 AM, Reza Housseini wrote: > Hello Guys > > I try to import a library and was now wondering if there's a > platform-independent way? Not in the sense that CMake would handle this for you magically. At least not when importing libraries that are not shipping with

[CMake] How to import platform-independent library with add_library()?

2012-12-14 Thread Reza Housseini
Hello Guys I try to import a library and was now wondering if there's a platform-independent way? Here's my code: add_library(mylib SHARED IMPORTED) set_target_properties(mylib PROPERTIES IMPORTED_LOCATION ${CPPLIB_DIR}/libmylib.so) But now what about using this CMakeLists.txt file under

Re: [CMake] Can not find test to add properties to:

2012-12-14 Thread Witold E Wolski
Found a solution: removing NAME from add_test(NAME hdf5mstest helps. No errors with cmake 2.6 regards On 14 December 2012 10:15, Witold E Wolski wrote: > I am trying to build a project on a 'custom' linux machine. > > When running cmake (cmake version 2.6-patch 4) > thats the error I am gett

[CMake] Can not find test to add properties to:

2012-12-14 Thread Witold E Wolski
I am trying to build a project on a 'custom' linux machine. When running cmake (cmake version 2.6-patch 4) thats the error I am getting. (set_tests_properties): set_tests_properties Can not find test to add properties to: The relevant section in the CMakeLists.txt file looks like this: ENABL