Re: [CMake] Static Modules

2010-03-10 Thread Markus Raab
Hi! Ryan Pavlik wrote: > get_target_properties() with the property SOURCES > then for each value you get back there, do a > get_source_file_properties() for LOCATION > and add all such locations to a new list, then create a target with that > source list. Thank you for your answer. The method yo

[CMake] adding same subdirectory multiple times.

2010-03-10 Thread Mika . Rajala
Hi The problem: >From a shared CMakeLists.txt i get the following error when defining a library target. Policy CMP0002 is not set: Logival target names must be globally unique. The situation: Let's assume i have the following cmake files in the following folders with the svn:externals propert

[CMake] CMake 2.8.1 RC 4 is ready to try

2010-03-10 Thread Bill Hoffman
CMake 2.8.1 RC 5 is ready to try: http://www.cmake.org/files/v2.8/?C=M;O=D Please try your projects with it. If you find any issues, let me know. I think this is about it. I only had two small fixes over RC 4, so this should be it. (The source trees should no longer have full git repositori

Re: [CMake] Static Modules

2010-03-10 Thread Ryan Pavlik
get_target_properties() with the property SOURCES then for each value you get back there, do a get_source_file_properties() for LOCATION and add all such locations to a new list, then create a target with that source list. On Wed, Mar 10, 2010 at 5:04 PM, Markus Raab wrote: > Hi, > > Thank you b

Re: [CMake] Static Modules

2010-03-10 Thread Markus Raab
Hi, Thank you both for your help! Ryan Pavlik wrote: > A bit less work: if you're building all the modules in CMake too, you > could loop through them extracting their source lists then adding those to > a new target: probably could be generalizable to a custom command in a > cmake module. Yes,

Re: [CMake] Static Modules

2010-03-10 Thread Markus Raab
Alexander Neundorf wrote: > We don't have that anymore, we just compile all the files directly into > one library. But only in the dynamic way? > We didn't have any issues with this since then. > (it may be possible to hack something together with custom commands to > extract the object files f

[CMake] 2 questions :)

2010-03-10 Thread Benoit Thomas
Hello, I have 3 projects, one library and 2 executables. Both executables depends on the library. The library is legacy stuff, and I don't need to fully convert it to cmake so the cmakelists. txt looks something like this: add_library(mylib STATIC IMPORTED) set_target_properties(mylib PROPE

Re: [CMake] Static Modules

2010-03-10 Thread Ryan Pavlik
On Wed, Mar 10, 2010 at 1:47 PM, Alexander Neundorf wrote: > On Tuesday 09 March 2010, Markus Raab wrote: > > Hi list! > > > > I am currently trying to migrate a autotools project to cmake. > > > > The project used modules intensively. It was possible to compile all > these > > modules also stati

Re: [CMake] create ctest dependency for ctest -jN

2010-03-10 Thread Matt McCormick
> On Wednesday 10 March 2010 01:25:38 pm Matt McCormick wrote: > > Hi, > > > > Is there a way to add a dependency for a test created with add_test() on > > another test created with add_test() so 'ctest -jN' will work properly? > > > > set_tests_properties(test1 PROPERTIES DEPENDS test2) > T

Re: [CMake] link_directories & include_directories

2010-03-10 Thread Alexander Neundorf
On Wednesday 10 March 2010, Benoit Thomas wrote: > Hello, > > Are there equivalent to link_directories & If you use target_link_libraries(), and all the libraries you link against have the full path (which is highly recommended) a per-target link_directories() is not necessary. > include_direc

Re: [CMake] create ctest dependency for ctest -jN

2010-03-10 Thread Clinton Stimpson
On Wednesday 10 March 2010 01:25:38 pm Matt McCormick wrote: > Hi, > > Is there a way to add a dependency for a test created with add_test() on > another test created with add_test() so 'ctest -jN' will work properly? > set_tests_properties(test1 PROPERTIES DEPENDS test2) Clint

[CMake] create ctest dependency for ctest -jN

2010-03-10 Thread Matt McCormick
Hi, Is there a way to add a dependency for a test created with add_test() on another test created with add_test() so 'ctest -jN' will work properly? Thanks. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitwa

[CMake] link_directories & include_directories

2010-03-10 Thread Benoit Thomas
Hello, Are there equivalent to link_directories & include_directories which would require a target ? Thanks, Ben. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

Re: [CMake] OCaml support in CMake?

2010-03-10 Thread Judicaƫl Bedouet
Hello, I'm currently working on scripts to manage OCaml libraries and executables in CMake. It's just a set of scripts. I wonder if they could be integrated in the CMake distribution or if it would be better to integrate a real OCaml support in CMake. (I'm not in the CMake team) I have sent two v

Re: [CMake] Static Modules

2010-03-10 Thread Alexander Neundorf
On Tuesday 09 March 2010, Markus Raab wrote: > Hi list! > > I am currently trying to migrate a autotools project to cmake. > > The project used modules intensively. It was possible to compile all these > modules also statically and link them together to a single static library. > Is this supported

Re: [CMake] OCaml support in CMake?

2010-03-10 Thread Werner Smekal
On 3/10/10 1:35 PM, Magnus Therning wrote: > I'm completely new to CMake, even though I've heard of it before this > is the first time I have a closer look at it. Actually this was > prompted by the interview in FLOSS Weekly :-) > > Currently I have a rather large OCaml project, which uses OMake.

[CMake] OCaml support in CMake?

2010-03-10 Thread Magnus Therning
I'm completely new to CMake, even though I've heard of it before this is the first time I have a closer look at it. Actually this was prompted by the interview in FLOSS Weekly :-) Currently I have a rather large OCaml project, which uses OMake. There are several things I'd like to improve on the