Re: [CMake] Improvements for cross-referencing in the documentation?

2011-01-26 Thread SF Markus Elfring
Am 26.01.2011 17:44, schrieb Alexander Neundorf: On Wednesday 26 January 2011, SF Markus Elfring wrote: E.g. cmake --help-full.docbook gives you a docbook file, which can then be processed further. The interesting thing is how to get the links into these files initially. Do you need any interm

[CMake] Macro to turn list of librarys into list of dirs?

2011-01-26 Thread Jeremy Selan
Hello! I have a real newbie question here. It's possible this was already answered, but I tried searching the archives and could not find anything. I have an application that links to a few libraries, some of which are in the system install locations and some of which aren't. I would like the rp

Re: [CMake] how to specify dependencies out of the source tree?

2011-01-26 Thread Michal Turlik
ehi nice! thanks --- On Wed, 1/26/11, Rolf Eike Beer wrote: From: Rolf Eike Beer Subject: Re: [CMake] how to specify dependencies out of the source tree? To: cmake@cmake.org Date: Wednesday, January 26, 2011, 7:05 PM > I thank you so much Eric, > However I managed this thing and obteined the e

Re: [CMake] cmake config.h

2011-01-26 Thread Michael Jackson
I _think_ there are issues with generating a file that is later used by CMake. I think. The other issue is that every time you run CMake (by default) that file is going to be written, then configured by cmake which will most likely mean a larger recompile than might be necessary. I don't see th

Re: [CMake] cmake config.h

2011-01-26 Thread luxInteg
On Tuesday 25 January 2011 03:32:36 luxInteg wrote: > On Sunday 28 November 2010 16:03:33 luxInteg wrote: > > I came across the useful wiki > > http://www.cmake.org/Wiki/CMake:How_To_Write_Platform_Checks > > I need '1's in config.g and I dont know how these are generated. > For gsl This the cmak

Re: [CMake] how to specify dependencies out of the source tree?

2011-01-26 Thread Rolf Eike Beer
> I thank you so much Eric, > However I managed this thing and obteined the expected result by writing > something similar and then including it in my root CMakeLists.txt: > > - util lib dependency - > # -*- Makefile -*- > > IF(BUILD_STANDALONE) For those project I need that I usually do t

Re: [CMake] Out-of-source build and access to data

2011-01-26 Thread Alexey Livshits
You can install target and data and then run your program. 2011/1/26, Benjamin Kurz : > Hello everyone, > > Currently I'm using cmake for building my c++/Qt project. > The source directory structure looks like this: > Project > |_ src > |_ include > |_ data > > > Currently I run cmake from the sou

Re: [CMake] CMake Function, how do I pass out strings or lists?

2011-01-26 Thread Tyler Roscoe
On Wed, Jan 26, 2011 at 11:24:48AM -0600, kent williams wrote: > cmake_minimum_required(VERSION 2.8) > project(testo) > > function(set_a_var var value) > set(${var} ${value}) > message("${var} = ${${var}}") > endfunction() > > set_a_var(testo "HELLO!") > > message("outside func testo=${testo

[CMake] CMake Function, how do I pass out strings or lists?

2011-01-26 Thread kent williams
The CMakeLists.txt below illustrates the problem: - cmake_minimum_required(VERSION 2.8) project(testo) function(set_a_var var value) set(${var} ${value}) message("${var} = ${${var}}") endfunction() set_a_var(testo "HELLO!") message(

Re: [CMake] Improvements for cross-referencing in the documentation?

2011-01-26 Thread Alexander Neundorf
On Wednesday 26 January 2011, SF Markus Elfring wrote: > > E.g. cmake --help-full.docbook > > gives you a docbook file, which can then be processed further. > > The interesting thing is how to get the links into these files initially. > > Do you need any intermediate format(s) for the desired data

Re: [CMake] Out-of-source build and access to data

2011-01-26 Thread Michael Wild
Look at these two documents: http://doc.trolltech.com/4.1/qt-conf.html http://doc.trolltech.com/4.1/qlibraryinfo.html#location By creating a qt.conf in your build directory next to your application you can make your code completely agnostic to the location of your data files. HTH Michael On 0

Re: [CMake] how to specify dependencies out of the source tree?

2011-01-26 Thread Michal Turlik
I thank you so much Eric, However I managed this thing and obteined the expected result by writing something similar and then including it in my root CMakeLists.txt: - util lib dependency - # -*- Makefile -*- IF(BUILD_STANDALONE)   project( util_lib_pro ) # compatibility issues   cmake

Re: [CMake] Out-of-source build and access to data

2011-01-26 Thread Benjamin Kurz
ok, sorry, let's make it more real. I cannot disclose much code, but it's like this: I have a normal Qt application started out of a main.cpp which is located in $SOURCE_DIR/src In another QWidget also located in $SOURCE_DIR/src I call a function which is also declared in $SOURCE_DIR/src with some

Re: [CMake] Out-of-source build and access to data

2011-01-26 Thread David Cole
Send some code for us to look at. If the cwd is where your exe is, and there's a file at "./data/file1" then you should certainly be able to open and read that file with that file name. Maybe your cwd is not what you think it is. Maybe your code changes it somewhere between launching and attempti

[CMake] Out-of-source build and access to data

2011-01-26 Thread Benjamin Kurz
Hello everyone, Currently I'm using cmake for building my c++/Qt project. The source directory structure looks like this: Project |_ src |_ include |_ data Currently I run cmake from the source directory, having an in-source-build. Now I want to be able to have a complete seperate build folder.

Re: [CMake] Find_package: general question

2011-01-26 Thread Michael Hertling
On 01/21/2011 02:59 PM, Vincent Garcia wrote: > Dear CMake users, > > I have this BIG project which has tons of subdirectories (many levels). > In each (final) subdirectory, I create targets (executables and libraires). > So I have my top level CMakeLists.txt and one CMakeLists.txt file (which

Re: [CMake] Problem with archive_write_finish_entry(): Can't update time...

2011-01-26 Thread David Cole
>From the libarchive source code, it looks like this message appears as a "warning" and returns ARCHIVE_WARN. CMake spits out an error message whenever a libarchive function returns anything other than ARCHIVE_OK. Perhaps we should detect ARCHIVE_WARN and only emit a "CMake Warning" message rathe

[CMake] Problem with archive_write_finish_entry(): Can't update time...

2011-01-26 Thread Daniel Pfeifer
Hi, executing the command 'cmake -E tar xfz archive.tgz' can be really noisy. It works fine in Linux and also in Windows if I use the Qt GUI to CMake. In a Windows Terminal it reports "CMake Error: Problem with archive_write_finish_entry(): Can't update time for %s" for every single file in the ar

Re: [CMake] how to specify dependencies out of the source tree?

2011-01-26 Thread Eric Noulard
2011/1/26 Michal Turlik > > Hi all > I am trying to build and link against a dependency out of the source tree. > I tried to arrange a custom target/command combo but it did not work. > Could someone help me with this? > What I really need is how to let cmake and make be correclty launched for >

Re: [CMake] Improvements for cross-referencing in the documentation?

2011-01-26 Thread SF Markus Elfring
E.g. cmake --help-full.docbook gives you a docbook file, which can then be processed further. The interesting thing is how to get the links into these files initially. Do you need any intermediate format(s) for the desired data exchange? Regards, Markus _

[CMake] how to specify dependencies out of the source tree?

2011-01-26 Thread Michal Turlik
Hi all I am trying to build and link against a dependency out of the source tree. I tried to arrange a custom target/command combo but it did not work. Could someone help me with this? What I really need is how to let cmake and make be correclty launched for such an out of tree dependency before i