Re: [CMake] FindDCMTK Not setting up DCMTK_INCLUDE_DIRECTORIES Correctly?

2011-11-29 Thread Michael Hertling
On 11/29/2011 08:49 PM, Thomas Sondergaard wrote: > On 2011-11-29 18:19, kent williams wrote: >> I actually install DCMTK in a subdirectory of my top-level build, and >> then my program that uses DCMTK is configured with DCMTK_DIR. > > What is DCMTK_DIR pointing at? The installation dir or the sou

Re: [CMake] 2D arrays

2011-11-29 Thread Clinton Stimpson
How about the following two examples for a table or 2d array. In the first one, each column can have a name too. Its like an array of pointers in C++. set(fruits apple orange banana) set(animals cat dog elephant) set(columns fruits animals) foreach(column ${columns}) foreach(item ${${column

Re: [CMake] 2D arrays

2011-11-29 Thread Robert Dailey
On Tue, Nov 29, 2011 at 5:57 PM, Michael Hertling wrote: > Just some spontaneous questions/remarks: > Thanks; I really appreciate it! > - Why do you use macros instead of functions? > I use macros so the _array2d_ variables fall through the scope of the macro and are available in the next call

Re: [CMake] Get errors when executing shell scripts in post_build process as custom targets

2011-11-29 Thread NoRulez
Much thanks, could this command be done with the BundleUtilities too? ADD_CUSTOM_COMMAND(TARGET Custom1 POST_BUILD COMMAND /usr/bin/macdeployqt ${PROJECT_NAME}.app WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}

Re: [CMake] 2D arrays

2011-11-29 Thread Michael Hertling
On 11/30/2011 12:28 AM, Robert Dailey wrote: > I have created a pretty clean solution to this until there is native > support for multi-dimensional arrays in CMake. I have attached the module, > hopefully it will prove useful to others. Here is an example of how to use > it: > > set( two_dee_array

Re: [CMake] 2D arrays

2011-11-29 Thread Robert Dailey
I have created a pretty clean solution to this until there is native support for multi-dimensional arrays in CMake. I have attached the module, hopefully it will prove useful to others. Here is an example of how to use it: set( two_dee_array apple cat orange dog banana elephant ) array2d_begin_lo

Re: [CMake] Clen-up pre-built software

2011-11-29 Thread Michael Hertling
On 11/22/2011 11:42 AM, t m wrote: > Hi Community, > > In the large project we a having periodic taks which build a couple of > projects and store the result of the build in one specific place. > Once it's build the rest of the team can use this artifacts becouse > those are exported by using of e

Re: [CMake] Get errors when executing shell scripts in post_build process as custom targets

2011-11-29 Thread David Cole
The double quoting is wrong. Do this (no quotes necessary): COMMAND /usr/bin/macdeployqt ${BUNDLE_IDENTIFIER} Not this: COMMAND "/usr/bin/macdeployqt ${BUNDLE_IDENTIFIER}" HTH, David On Tue, Nov 29, 2011 at 5:37 PM, NoRulez wrote: > Hi, > > > > I want to do something after the bundle i

[CMake] Get errors when executing shell scripts in post_build process as custom targets

2011-11-29 Thread NoRulez
Hi, I want to do something after the bundle is created (POST_BUILD). For this I tried the following: ADD_EXECUTABLE(...) TARGET_LINK_LIBRARIES(...) ADD_DEPENDECIES(...) IF (APPLE) SET(BUNDLE_IDENTIFIER "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}.app") ADD_C

Re: [CMake] CPACK RPM directories in %files section

2011-11-29 Thread Eric Noulard
2011/11/29 Steven Green : > Hello, > > This is my first post to this mailing list.  I have a problem relating to > creating an RPM. > > Previously I was using CMake version 2.8.4, and when adding a file such as > /etc/init.d/myfile it would only add that one file to the RPM. > > I recently upgraded

Re: [CMake] Platform Finding modules

2011-11-29 Thread Eric Noulard
2011/11/29 Laszlo Papp : [...] >> The file is meant to be included in a CMakeLists.txt for which the >> "project" command >> has already been called. > > I do not see any files attached. classical missing attachment mistake of mine... here it comes. -- Erk Membre de l'April - « promouvoir et dé

Re: [CMake] [RFC] How to use pkg-config under Windows (... and OSX)?

2011-11-29 Thread Alexander Neundorf
On Friday 18 November 2011, Patrick Spendrin wrote: > Am 18.11.2011 02:02, schrieb Alan W. Irwin: > > Alex, is it possible your KDE Windows developers who are objecting to > > pkg-config tried a version from years ago when it did not have all > > these Windows issues sorted out? I suggest you tell

[CMake] CPACK RPM directories in %files section

2011-11-29 Thread Steven Green
Hello, This is my first post to this mailing list. I have a problem relating to creating an RPM. Previously I was using CMake version 2.8.4, and when adding a file such as /etc/init.d/myfile it would only add that one file to the RPM. I recently upgraded to CMake 2.8.6 and now it is adding

Re: [CMake] FindDCMTK Not setting up DCMTK_INCLUDE_DIRECTORIES Correctly?

2011-11-29 Thread Thomas Sondergaard
On 2011-11-29 20:49, Thomas Sondergaard wrote: I am doing exactly what you're doing, and if you don't have this problem I'm interested in how you got it to work. The most recent version of FindDCMTK.cmake differs from the 2.8.5. Can you tell while this change solves your problem? [ts@road

[CMake] FindPythonLibs fails inexplicably

2011-11-29 Thread Matthew LeRoy
I'm having trouble diagnosing why a call to FIND_PACKAGE(PythonLibs) is failing. I am running CMake 2.8.5 on Windows 7 Enterprise, 64-bit. The same CMake code works fine on my colleagues' systems, so it's got to be something wrong on my machine. In my CMakeLists.txt, I've got something like this:

Re: [CMake] FindDCMTK Not setting up DCMTK_INCLUDE_DIRECTORIES Correctly?

2011-11-29 Thread Thomas Sondergaard
On 2011-11-29 18:19, kent williams wrote: I actually install DCMTK in a subdirectory of my top-level build, and then my program that uses DCMTK is configured with DCMTK_DIR. What is DCMTK_DIR pointing at? The installation dir or the source dir? As you can see in the description of the string i

Re: [CMake] Platform Finding modules

2011-11-29 Thread Eric Noulard
2011/11/29 Alexander Neundorf : > On Tuesday 29 November 2011, Laszlo Papp wrote: >> Hi, >> >> Are there any modules to realize the fact what platform I build on top >> of ? I could imagine something like >> Find{Harmattan,Fremantle,Maemo,MeeGo,Tizen,AnyPlatform}.cmake in wider >> usage. > > No, cu

Re: [CMake] Documentation does not include --check-build-system

2011-11-29 Thread Alexander Neundorf
On Tuesday 29 November 2011, J Decker wrote: > On Tue, Nov 29, 2011 at 9:17 AM, Alexander Neundorf > > wrote: > > On Monday 28 November 2011, J Decker wrote: > >> On Mon, Nov 28, 2011 at 12:01 PM, Alexander Neundorf > >> > >> wrote: > >> > On Saturday 26 November 2011, J Decker wrote: > >> >> I

Re: [CMake] Documentation does not include --check-build-system

2011-11-29 Thread J Decker
On Tue, Nov 29, 2011 at 9:17 AM, Alexander Neundorf wrote: > On Monday 28 November 2011, J Decker wrote: >> On Mon, Nov 28, 2011 at 12:01 PM, Alexander Neundorf >> >> wrote: >> > On Saturday 26 November 2011, J Decker wrote: >> >> I don't find any documentation on the command that cmake uses with

Re: [CMake] Platform Finding modules

2011-11-29 Thread Alexander Neundorf
On Tuesday 29 November 2011, Laszlo Papp wrote: > Hi, > > Are there any modules to realize the fact what platform I build on top > of ? I could imagine something like > Find{Harmattan,Fremantle,Maemo,MeeGo,Tizen,AnyPlatform}.cmake in wider > usage. No, currently not. These are basically different

Re: [CMake] Documentation does not include --check-build-system

2011-11-29 Thread Alexander Neundorf
On Monday 28 November 2011, J Decker wrote: > On Mon, Nov 28, 2011 at 12:01 PM, Alexander Neundorf > > wrote: > > On Saturday 26 November 2011, J Decker wrote: > >> I don't find any documentation on the command that cmake uses with a > >> cmake -E --check-build-system Does this option happen

Re: [CMake] FindDCMTK Not setting up DCMTK_INCLUDE_DIRECTORIES Correctly?

2011-11-29 Thread kent williams
I actually install DCMTK in a subdirectory of my top-level build, and then my program that uses DCMTK is configured with DCMTK_DIR. The problem isnt MY source, the problem is that the DCMTK headers use the dcmtk/x/y.h path form to include OTHER DCMTK headers. I am doing exactly what you're doing,

Re: [CMake] FindDCMTK Not setting up DCMTK_INCLUDE_DIRECTORIES Correctly?

2011-11-29 Thread Thomas Sondergaard
On 2011-11-29 17:28, kent williams wrote: I'm running into problems using the DCMTK library. I've set up an ExternalProject to build and install it, and the CMake 2.8.5 FindDCMTK.cmake finds the library if I set DCMTK_DIR. But the DCMTK_INCLUDE_DIRS variable created by FindDCMTK.cmake isn't 100

[CMake] FindDCMTK Not setting up DCMTK_INCLUDE_DIRECTORIES Correctly?

2011-11-29 Thread kent williams
I'm running into problems using the DCMTK library. I've set up an ExternalProject to build and install it, and the CMake 2.8.5 FindDCMTK.cmake finds the library if I set DCMTK_DIR. But the DCMTK_INCLUDE_DIRS variable created by FindDCMTK.cmake isn't 100% correct. It does a good job of enumeratin

Re: [CMake] Platform Finding modules

2011-11-29 Thread Pau Garcia i Quiles
Hi, There are a few variables: CMAKE_SYSTEM, CMAKE_HOST_UNIX, WIN32, etc but not as accurate as you seem to need. http://cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_SYSTEM You'd need to take CMAKE_SYSTEM, then refine it through your own knowledge of the platform. On Tue, Nov 29, 2

Re: [CMake] How to build for 32bit using multiarch?

2011-11-29 Thread Kishore
On Tuesday 29 Nov 2011 10:50:13 AM Mathias Gaunard wrote: > On 11/28/2011 05:58 PM, Kishore Jonnalagadda wrote: > > I have recently moved to using 64bit Kubuntu Oneiric when supports > > multiarch. I understand that building 32 bit from my 64 install is as > > simple as adding the "-m32" option to

[CMake] Platform Finding modules

2011-11-29 Thread Laszlo Papp
Hi, Are there any modules to realize the fact what platform I build on top of ? I could imagine something like Find{Harmattan,Fremantle,Maemo,MeeGo,Tizen,AnyPlatform}.cmake in wider usage. An example for using such a feature: I would like to set something according to the actual platform, like wh

Re: [CMake] CTestScript for all available git branches/tags

2011-11-29 Thread David Cole
For CMake itself, we have a one-to-one correlation between a script run and an entry that appears on the dashboard. We also have a common script that's included for nearly all CMake dashboard submissions, and we switch things that are different between different runs with simple variable sets for t

Re: [CMake] CTestScript for all available git branches/tags

2011-11-29 Thread Nicolas Desprès
On Tue, Nov 29, 2011 at 8:21 AM, wrote: > Is the CMake mailing list dead? > No :-) Although, I am also really interested in your request, I have never setup a ctest based continuous integration system so I don't have the answer. Maybe we could try your idea on a small project and see how it beh

Re: [CMake] How to build for 32bit using multiarch?

2011-11-29 Thread Mathias Gaunard
On 11/28/2011 05:58 PM, Kishore Jonnalagadda wrote: I have recently moved to using 64bit Kubuntu Oneiric when supports multiarch. I understand that building 32 bit from my 64 install is as simple as adding the "-m32" option to gcc. Asking cmake to add that flag is easy but i don't know how to ask