Re: [cmake-developers] Cannot cross-compile CMake

2011-09-12 Thread David Cole
Looks to me like this would be sufficient: # only build/install the documentation if not crosscompiling IF(NOT CMAKE_CROSSCOMPILING) INSTALL_FILES(${CMAKE_MAN_DIR}/man1 FILES ${MAN_FILES}) INSTALL_FILES(${CMAKE_DOC_DIR} FILES ${HTML_FILES} ${TEXT_FILES}) INSTALL(FILES cmake.m4 DESTINATION

Re: [cmake-developers] Cannot cross-compile CMake

2011-09-12 Thread Rolf Eike Beer
Looks to me like this would be sufficient: # only build/install the documentation if not crosscompiling IF(NOT CMAKE_CROSSCOMPILING) INSTALL_FILES(${CMAKE_MAN_DIR}/man1 FILES ${MAN_FILES}) INSTALL_FILES(${CMAKE_DOC_DIR} FILES ${HTML_FILES} ${TEXT_FILES}) INSTALL(FILES cmake.m4

Re: [cmake-developers] [PATCH] remove stray brace in CPackDeb documentation

2011-09-12 Thread Brad King
On 9/12/2011 9:37 AM, Rolf Eike Beer wrote: From c2a6ea8d1e5472c7b09195f58177a6002f39ade9 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beere...@sf-mail.de Date: Mon, 12 Sep 2011 15:35:27 +0200 Subject: [PATCH] remove stray brace in CPackDeb documentation Applied, thanks:

[cmake-developers] Some advice

2011-09-12 Thread James Bigler
I need some advice on how to fix a problem I'm having with files with the same name. I have two CUDA files with the same name in different directories: CUDA_ADD_EXECUTABLE(test-conflict path with spaces/conflict.cpp path with spaces/conflict.cu path with spaces/no-conflict.cpp path with

Re: [CMake] CPack question.

2011-09-12 Thread Eric Noulard
2011/9/12 Akshay akshay.ran...@gmail.com: Hello All, I have recently ported my project software tree to CMake and I am pretty happy about it. There is a last step which is proving quite elusive to me. The targets that are built in the software tree are TGZ'd for final distribution, however,

Re: [CMake] CPack question.

2011-09-12 Thread Eric Noulard
2011/9/12 Akshay akshay.ran...@gmail.com: Hi Eric, Hi, Please do not drop the ML address. 'make install' puts the targets in the directories that I have set in the main CMakeLists.txt. I am using CMake 2.8.0 on Ubuntu x64 (Linux valhala 2.6.38-10-generic #46~lucid1-Ubuntu SMP Wed Jul 6

Re: [CMake] CPack question.

2011-09-12 Thread Akshay
Hi Eric, Just to clarify, INSTALL command are present in the sibling source directories' CMakeLists.txt and not in the main CMakeLists.txt. Would this change the behavior of CPack (which is present only in the main CMakeLists.txt) ? Akshay On Mon, Sep 12, 2011 at 12:18 PM, Eric Noulard

Re: [CMake] CPack question.

2011-09-12 Thread Eric Noulard
2011/9/12 Akshay akshay.ran...@gmail.com: Hi Eric, Just to clarify, INSTALL command are present in the sibling source directories' CMakeLists.txt and not in the main CMakeLists.txt. Would this change the behavior of CPack (which is present only in the main CMakeLists.txt) ? No it shouldn't.

Re: [CMake] CPack question.

2011-09-12 Thread Akshay
I'll try and get back. Thanks very much for the help. Akshay On Mon, Sep 12, 2011 at 12:34 PM, Eric Noulard eric.noul...@gmail.comwrote: 2011/9/12 Akshay akshay.ran...@gmail.com: Hi Eric, Just to clarify, INSTALL command are present in the sibling source directories' CMakeLists.txt

[CMake] CMake example for Qt console application (without GUI)

2011-09-12 Thread Reinhard Thies
Hello, I am looking for a cmake example for a Qt console application. Are there any ? Thanks. Reinhard ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

Re: [CMake] CMake example for Qt console application (without GUI)

2011-09-12 Thread Alan W. Irwin
On 2011-09-12 09:04+0200 Reinhard Thies wrote: Hello, I am looking for a cmake example for a Qt console application. Are there any ? Sure. PLplot has a CMake-based build system which we use (among many other things) to configure one of the PLplot device drivers called qt. That device driver

Re: [CMake] CMake example for Qt console application (without GUI)

2011-09-12 Thread Reinhard Thies
On Monday 12 September 2011 10:26:44 Alan W. Irwin wrote: On 2011-09-12 09:04+0200 Reinhard Thies wrote: Hello, I am looking for a cmake example for a Qt console application. Are there any ? Sure. PLplot has a CMake-based build system which we use (among many other things) to

[CMake] Xcode IDE hierarchy view on CMake projects

2011-09-12 Thread Daniel Dekkers
Hi, I've managed to get working multi-platform/-architecture meta-builds for Windows, Mac OS X and iOS via CMake. I get the following hierarchy shown in the XCode (4.0.2) IDE: 'MetaName' + Sources + ALL_BUILD + 'ProjectName_1' + Source Files + Resources +

Re: [CMake] Running unit test as part of the build

2011-09-12 Thread Ben Medina
On Sat, Sep 10, 2011 at 9:10 AM, Erik Johansson e...@ejohansson.se wrote: How does one get cmake to run the unit test as part of the build so that: - If the unit test fails, the build fails. - If the unit test has failed, and make is run again, the unit test will run again. - If the unit

Re: [CMake] CPack question.

2011-09-12 Thread Akshay
Thanks Eric. Everything working now. I was using absolute paths in INSTALL commands. Akshay On Mon, Sep 12, 2011 at 12:36 PM, Akshay akshay.ran...@gmail.com wrote: I'll try and get back. Thanks very much for the help. Akshay On Mon, Sep 12, 2011 at 12:34 PM, Eric Noulard

[CMake] [SunOS] ccmake: fatal: relocation error: file ccmake: symbol _register_forkhandler: referenced symbol not found

2011-09-12 Thread Alec Taylor
Good morning, Unfortunately CMake is failing for me. uname -a SunOS 5.10 Generic_144500-19 sun4u sparc SUNW,Sun-Fire-V490 /usr/sfw/bin/wget http://www.cmake.org/files/v2.8/cmake-2.8.5-SunOS-sparc.sh chmod +x ./cmake-2.8.5-SunOS-sparc.sh ./cmake-2.8.5-SunOS-sparc.sh [Agree] n (install to

Re: [CMake] [SunOS] ccmake: fatal: relocation error: file ccmake: symbol _register_forkhandler: referenced symbol not found

2011-09-12 Thread Bill Hoffman
On 9/12/2011 12:56 PM, Alec Taylor wrote: Good morning, Unfortunately CMake is failing for me. uname -a SunOS 5.10 Generic_144500-19 sun4u sparc SUNW,Sun-Fire-V490 /usr/sfw/bin/wget http://www.cmake.org/files/v2.8/cmake-2.8.5-SunOS-sparc.sh chmod +x ./cmake-2.8.5-SunOS-sparc.sh

Re: [CMake] Running unit test as part of the build

2011-09-12 Thread Michael Wild
On Mon 12 Sep 2011 05:47:18 PM CEST, Ben Medina wrote: On Sat, Sep 10, 2011 at 9:10 AM, Erik Johansson e...@ejohansson.se wrote: How does one get cmake to run the unit test as part of the build so that: - If the unit test fails, the build fails. - If the unit test has failed, and make is run

Re: [CMake] Running unit test as part of the build

2011-09-12 Thread Erik Johansson
On Mon, Sep 12, 2011 at 20:30, Michael Wild them...@gmail.com wrote: How about using a custom command that runs the unit test using a wrapper script that upon successful completion creates a stamp-file and depends upon the unit-test executable target itself? This seems to work:

[CMake] Diff output from CMake?

2011-09-12 Thread Clifford Yapp
I am trying to compare two large lists of file paths (about 14,000 lines each) to identify which entries in each list are missing from the other, and while I can get CMake to do it I must be doing it the wrong way because the results are hideously slow. I currently generate two files with the

[Cmake-commits] CMake branch, next, updated. v2.8.5-1873-gcecd108

2011-09-12 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via cecd108edc0c1635c5899951442cc0db5f002025 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.5-1875-gd1ebe8a

2011-09-12 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via d1ebe8a96d0b89b9e4a0e350642604c0c8746e97 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.5-449-gc702120

2011-09-12 Thread KWSys Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via c7021203de8a3632d7f33bc812b41e88f5bc86f9 (commit) from