Re: [CMake] File permissions on CONFIGURE_FILE output

2010-02-03 Thread Michael Wild
On 2. Feb, 2010, at 22:31 , aaron_wri...@selinc.com wrote: > I run CONFIGURE_FILE on a file that is read only. The output file is also > read only, which is a problem because I need to append to it. Is there a > way to change this behavior? Or a work around? > Either change the source-file pe

[CMake] How to get Qt shared libraries to install with cmake 2.8.0

2010-02-03 Thread Mika . Rajala
Hi I'd like to install the necessary .dll files of Qt to my install directory. So that when someone installs my program from a package, he gets the complete set and doesn't need to install Qt seperately. Actually my program is multiple programs and i'd rather not link them statically to Qt libr

[CMake] ctest: dependency between tests

2010-02-03 Thread Emmanuel Christophe
Hi, I discovered the -j option for ctest recently. I assume there is a way to introduce some dependencies between the test (the input of one test being produced by another test for example). By searching along the line of set_tests_properties, or ctest dependencies, I couldn't find anything. Can

Re: [CMake] File permissions on CONFIGURE_FILE output

2010-02-03 Thread Michael Wild
On 3. Feb, 2010, at 10:16 , Chris Hillery wrote: > On Wed, Feb 3, 2010 at 1:09 AM, Michael Wild wrote: > >> >> On 2. Feb, 2010, at 22:31 , aaron_wri...@selinc.com wrote: >> >>> I run CONFIGURE_FILE on a file that is read only. The output file is also >>> read only, which is a problem because

Re: [CMake] File permissions on CONFIGURE_FILE output

2010-02-03 Thread Chris Hillery
On Wed, Feb 3, 2010 at 1:09 AM, Michael Wild wrote: > > On 2. Feb, 2010, at 22:31 , aaron_wri...@selinc.com wrote: > > > I run CONFIGURE_FILE on a file that is read only. The output file is also > > read only, which is a problem because I need to append to it. Is there a > > way to change this be

Re: [CMake] File permissions on CONFIGURE_FILE output

2010-02-03 Thread Chris Hillery
Whoops - I take it back. I see that it IS there in the 2.8 online docs, as a separate file( entry as you said. Not terribly clear IMHO, but anyway. So I guess this is a new 2.8 feature (it really truly isn't there in 2.6.4). Ceej aka Chris Hillery On Wed, Feb 3, 2010 at 3:04 AM, Chris Hillery wro

Re: [CMake] File permissions on CONFIGURE_FILE output

2010-02-03 Thread Chris Hillery
> You probably didn't grep the man-page thoroughly ;-) It is documented as > "file(" > I did, actually! It ain't there on the online manual: http://www.cmake.org/cmake/help/cmake2.6docs.html#command:file Moreover, your script doesn't work here with CMake 2.6.4. Maybe it was added in CMake 2.8? I

Re: [CMake] Inherited project settings

2010-02-03 Thread Marcel Loose (Astron)
Hi Brian, You ask a lot of questions in one mail ;-) I'll answer some inline (see below). Best regards, Marcel Loose. On Tuesday 02 February 2010 22:15:11 Brian Davis wrote: > So I have various CMakeLists.txt files in my directory structure. Some > with the PROJECT( name ) specified at the top

Re: [CMake] File permissions on CONFIGURE_FILE output

2010-02-03 Thread Michael Wild
You're right, I could have sworn that file(COPY...) has been around for ages ;-) Michael On 3. Feb, 2010, at 12:05 , Chris Hillery wrote: > Whoops - I take it back. I see that it IS there in the 2.8 online docs, as a > separate file( entry as you said. Not terribly clear IMHO, but > anyway. So

Re: [CMake] How to get Qt shared libraries to install with cmake 2.8.0

2010-02-03 Thread Mike Jackson
This is what I use. Seems a bit "kludgey" but does seem to work. This code will copy the Qt dlls into BOTH the Debug and Release build directories (so debugging works) and create installation rules to copy the proper dlls into the install location. # Copy the needed Qt libraries into the Build dir

[CMake] Problem with the path when including another Cmakelist file

2010-02-03 Thread Renan Greinert
Hello, I am trying to develop a database for codes for reuse, and I would like to use CMake to manage it. Here is how my files are organizated: In /codes/Thread/ IThread.h Thread.cpp Runnable.h CMakelists_Thread.txt Then, inside CMakelists_Thread.txt I have: #cmake_minimum_required(VERSION 2.

[CMake] CMakeEd Maintenance Release - Version 1.1.5

2010-02-03 Thread Michael Jackson
It has been a while but I was finally able to get some time to put together a new Release for the CMakeEd Eclipse plugin. CMakeEd provides syntax coloring and command completion for CMake files in Eclipse. All the CMake help is also integrated into the Eclipse Help system and is fully searc

Re: [CMake] How to get Qt shared libraries to install with cmake 2.8.0

2010-02-03 Thread Clinton Stimpson
You can see an example here of bundling up Qt with an application: http://www.cmake.org/Wiki/BundleUtilitiesExample Note: before CMake 2.8, it only worked on Mac OS X. In CMake 2.8, it works on Windows and Linux too. And it can be used for any 3rd party library besides just Qt, or any library

Re: [CMake] ctest: dependency between tests

2010-02-03 Thread Bill Hoffman
Emmanuel Christophe wrote: Hi, I discovered the -j option for ctest recently. I assume there is a way to introduce some dependencies between the test (the input of one test being produced by another test for example). By searching along the line of set_tests_properties, or ctest dependencies, I

Re: [CMake] ctest: dependency between tests

2010-02-03 Thread David Cole
No bug necessary. This is fixed in CVS HEAD of cmake already. cmake --help-property DEPENDS reports an error with cmake 2.8.0, but works in CVS HEAD of CMake On Wed, Feb 3, 2010 at 11:47 AM, Bill Hoffman wrote: > Emmanuel Christophe wrote: > >> Hi, >> >> I discovered the -j option for ctest re

Re: [CMake] Relative (source files) vs Absolute (include files) path

2010-02-03 Thread Ryan Pavlik
On 2/2/10 5:23 PM, Brian Davis wrote: Why I care: Lets say that I someone wants to check the Visual Studio project goop produced by CMake in trunk and check out in a diffrent directory in their branch on another machine. With absolute paths sprinkled all over effectively makes this impossibl

[CMake] Tutorial from "Mastering CMake" now online!

2010-02-03 Thread Bill Hoffman
For more information see my blog entry: http://www.kitware.com/blog/home/post/7 -Bill ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and chec

Re: [CMake] File permissions on CONFIGURE_FILE output

2010-02-03 Thread Aaron_Wright
I tried your way Michael and liked the simplicity of it, however, it seemed that CMake configuration would have to run much more often in my case, because the file I want to append to the configured file is a source/header file and it will be modified frequently during development. I also didn'

Re: [CMake] Tutorial from "Mastering CMake" now online!

2010-02-03 Thread Mateusz Loskot
Bill Hoffman wrote: For more information see my blog entry: http://www.kitware.com/blog/home/post/7 Bill, Great! By the way of tutorial, SO'ers have been asking :-) http://stackoverflow.com/questions/2186110/cmake-tutorial/ Best regards, -- Mateusz Loskot, http://mateusz.loskot.net ___

[CMake] RES: Problem with the path when including another Cmakelist file

2010-02-03 Thread Renan Greinert
Hi Ryan, Thank you for the reply. I've just tried that. It solved the error, but the variables REUSE_CODE_HEADERS and REUSE_CODE_SRCS are empty when I try to use them in my project's CMakelists. Here is a simpler code I've written to show the problem: #The CMakelists.txt from my reusable c

Re: [CMake] What is a good way to exclude default library locations from install-tree rpaths?

2010-02-03 Thread Alexander Neundorf
On Tuesday 02 February 2010, Alan W. Irwin wrote: ... > So to summarize this, I plan to filter all the many INSTALL_RPATH target > properties I set in various parts of our build system for our applications > and libraries using the CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES variable, > but a much cle

Re: [CMake] Inherited project settings

2010-02-03 Thread Brian Davis
>> Is there also a way to disable recursive sub directory project inheritance >> in CMake? >I don't know what you mean by "project inheritance", but AFAIK it is not >possible to disable inheriting settings from your parent directory. In Microsoft VS land this would be: Inherited Project Property S