Re: [CMake] functions & custom commands- what's the trick?

2009-02-20 Thread Aaron Turner
On Fri, Feb 20, 2009 at 9:25 AM, Mathieu Malaterre wrote: > On Fri, Feb 20, 2009 at 6:14 PM, Mike Arthur wrote: >> On Friday 20 February 2009 08:22:59 Aaron Turner wrote: >>> I seem to be missing something painfully obvious, but I'm not sure what. >> You don't enter it into add_custom_command, th

[CMake] Calling Python Setuptools (setup.py) from CMake.

2009-02-20 Thread Nima Talebi
Hi All, I've been using CMake for a little while now, but not with python. I have something like this in my CMakeLists.txt file... message(STATUS " ${III} Loading FUNCWIRE_MINION...") if(ENABLE_FUNCWIRE_MINION) message(STATUS " ${GGG} Python build...") execute_process(COMMAND cd ${CMAKE_SO

[CMake] Creation of Executable JAR

2009-02-20 Thread Nick Ogden
Hi, Does anyone know of a way to specify additional attributes to be added to a Java JAR file manifest? I'm trying to generate an executable JAR file but I don't know how to tell CMake to add the "Main-Class: classname" line to the manifest. Any help would be appreciated. Kind Regards -- Nick

Re: [CMake] CDT Unix make file

2009-02-20 Thread Dat Chu
Certainly, I added the note and clean up the Eclipse CDT4 generator page. Someone should rename this page to "Eclipse CDT Generator" since the instructions work with CDT 5 too and it is best to keep updating the wiki according to the latest version of CDT. Some users might find the title to refer t

Re: [CMake] CDT Unix make file

2009-02-20 Thread Alexander Neundorf
On Friday 20 February 2009, Dat Chu wrote: > The problem was the executable I had have the same name as the project > name. Can you please add that as a note to the wiki page so others are warned ? Thanks Alex ___ Powered by www.kitware.com Visit other

[CMake] How to search archives? CMake error code docu mentation?

2009-02-20 Thread rick
t/src/mylibrary/tests/tsptimer.cpp line:27 The more complete context of these errors is:[r...@gluon build]$ make ExperimentalScanning dependencies of target Experimental   Site: gluon.mycompany.com   Build name: RickTestAllCreate new tag: 20090220-2027 - ExperimentalStart processing testsConf

Re: [CMake] CDT Unix make file

2009-02-20 Thread Dat Chu
The problem was the executable I had have the same name as the project name. Dat Chu Research Assistant, Computational Biomedicine Lab (www.cbl.uh.edu) Dept. of Computer Science, University of Houston, Houston, TX 77204-3010 Tel: (281) 617-6949 Email: dt...@central.uh.edu On Fri, Feb 20, 2009 a

Re: [CMake] Remove all rpaths on install

2009-02-20 Thread Orion Poplawski
Alexander Neundorf wrote: On Friday 20 February 2009, Orion Poplawski wrote: We need to make sure that all rpaths are removed on install when building Fedora rpms. How can we achieve this? We still see /usr/lib64 being added (twice!) to items: 0x000f (RPATH) Librar

Re: [CMake] Remove all rpaths on install

2009-02-20 Thread Alexander Neundorf
On Friday 20 February 2009, Orion Poplawski wrote: > We need to make sure that all rpaths are removed on install when > building Fedora rpms. How can we achieve this? We still see /usr/lib64 > being added (twice!) to items: > > > 0x000f (RPATH) Library rpath: > [/usr/li

[CMake] Remove all rpaths on install

2009-02-20 Thread Orion Poplawski
We need to make sure that all rpaths are removed on install when building Fedora rpms. How can we achieve this? We still see /usr/lib64 being added (twice!) to items: 0x000f (RPATH) Library rpath: [/usr/lib64:/usr/lib64] Get "/usr/lib:/usr/lib" on 32-bit machines

Re: [CMake] CDT Unix make file

2009-02-20 Thread Alexander Neundorf
On Friday 20 February 2009, Dat Chu wrote: > Awesome Philip, that works perfectly. The binary is getting picked up. Which one was the problem ? Alex ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/open

Re: [CMake] Post install scripts for STGZ CPack target

2009-02-20 Thread Alexander Neundorf
On Friday 20 February 2009, James Bigler wrote: > Anyone know how to do this? I can't find documentation on this. If it's not supported, please file a feature request in the cmake bug tracker. Maybe this can in some way be synchronized with the same thing for the debian (and maybe other) genera

Re: [CMake] open source project for CMake ports?

2009-02-20 Thread Alexander Neundorf
On Friday 20 February 2009, Philip Lowman wrote: > On Thu, Feb 19, 2009 at 3:38 PM, Alexander Neundorf > > > wrote: > > > > On Wednesday 18 February 2009, Philip Lowman wrote: > > > This is an interesting idea. > > > > > > One thought I had was the potential of new features creeping into the > >

Re: [CMake] Post install scripts for STGZ CPack target

2009-02-20 Thread KSpam
James, > Is it possible to have a script run after the STGZ install? > > I want to run install_name_tool on a mac after some libraries are installed > in order to encode the installed path into the library names. > > I'll need to be able to pass the installation directory to the script. You can c

Re: [CMake] functions & custom commands- what's the trick?

2009-02-20 Thread Mathieu Malaterre
On Fri, Feb 20, 2009 at 6:14 PM, Mike Arthur wrote: > On Friday 20 February 2009 08:22:59 Aaron Turner wrote: >> I seem to be missing something painfully obvious, but I'm not sure what. > You don't enter it into add_custom_command, that's for shell commands., just > enter "clean_standard_files()"

Re: [CMake] functions & custom commands- what's the trick?

2009-02-20 Thread Mike Arthur
On Friday 20 February 2009 08:22:59 Aaron Turner wrote: > I seem to be missing something painfully obvious, but I'm not sure what. You don't enter it into add_custom_command, that's for shell commands., just enter "clean_standard_files()" into your CMakeLists. You can't run CMake functions at "Ma

Re: [CMake] Post install scripts for STGZ CPack target

2009-02-20 Thread James Bigler
Anyone know how to do this? I can't find documentation on this. Thanks, James On Thu, Feb 19, 2009 at 10:27 AM, James Bigler wrote: > Is it possible to have a script run after the STGZ install? > > I want to run install_name_tool on a mac after some libraries are installed > in order to encode

Re: [CMake] EXECUTABLE_OUTPUT_PATH is not just deprecated, it's harmful!

2009-02-20 Thread kent williams
On Thu, Feb 19, 2009 at 4:25 PM, Brad King wrote: >> The problem? If you're running standalone, everything's fine. If >> you're building inside the BRAINS tree, though, the LAST >> CMakeLists.txt file in the directory tree that sets >> EXECUTABLE_OUTPUT_PATH wins, and consequently executable files

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Christopher Harvey
Michael Jackson wrote: > > On Feb 20, 2009, at 8:51 AM, Christian Ehrlicher wrote: > >> Michael Jackson schrieb: >>> >>> On Feb 20, 2009, at 4:59 AM, Eric Noulard wrote: >>> 2009/2/20 Christian Ehrlicher : >> Von: Andreas Pokorny >> Hello, >> Wow that was fast. Thanks a lot. >

Re: [CMake] EXECUTABLE_OUTPUT_PATH is not just deprecated, it's harmful!

2009-02-20 Thread Brad King
Philip Lowman wrote: > On Thu, Feb 19, 2009 at 5:25 PM, Brad King > wrote: > > AFAIK the word 'deprecated' does not appear in the documentation for > EXECUTABLE_OUTPUT_PATH. It will be around for a long time. We just > recommend using the new variables

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Michael Jackson
On Feb 20, 2009, at 8:51 AM, Christian Ehrlicher wrote: Michael Jackson schrieb: On Feb 20, 2009, at 4:59 AM, Eric Noulard wrote: 2009/2/20 Christian Ehrlicher : Von: Andreas Pokorny Hello, Wow that was fast. Thanks a lot. Obviously I was too fast reading the doc :-) [...] SET_TARGET_

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Christian Ehrlicher
Michael Jackson schrieb: > > On Feb 20, 2009, at 4:59 AM, Eric Noulard wrote: > >> 2009/2/20 Christian Ehrlicher : Von: Andreas Pokorny Hello, Wow that was fast. Thanks a lot. >> >> Obviously I was too fast reading the doc :-) >> > [...] > > SET_TARGET_PROPERTIES(Platfo

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Michael Jackson
On Feb 20, 2009, at 4:59 AM, Eric Noulard wrote: 2009/2/20 Christian Ehrlicher : Von: Andreas Pokorny Hello, Wow that was fast. Thanks a lot. Obviously I was too fast reading the doc :-) [...] SET_TARGET_PROPERTIES(PlatformLib PROPERTIES DEFINE_S

Re: [CMake] CPack deb generator

2009-02-20 Thread Bruno Antunes
Will try, thanks! On Thu, Feb 19, 2009 at 21:53, Eric Noulard wrote: > From CPackDeb.cmake I think you may include extra scripts in the > control.tar.gz > generated by CPack DEB generator. > > # CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA > # This variable allow advanced user to add custom script to the

Re: [CMake] How can I install something into an absolute directory?

2009-02-20 Thread Kermit Mei
Alexander Neundorf wrote: On Monday 16 February 2009, Andreas Pakulat wrote: On 16.02.09 21:12:46, Kermit Mei wrote: How can I install something into an absolute directory? For example, I want to install the directory under /usr/share. When I use the following command: INSTALL(DIRECTORY

Re: [CMake] Sharing Modules between different installation of CMake

2009-02-20 Thread Robert Haines
On 18 Feb 2009, at 21:57, Nicholas Yue wrote: Robert Haines wrote: Hi, I am testing different version of CMake on multiple platform to ensure my custom modules works fine on all combination. I find it troublesome to copy my custom module to all the different ../share/cmake-X.Y/Modules direc

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Eric Noulard
2009/2/20 Christian Ehrlicher : >> Von: Andreas Pokorny >> Hello, >> Wow that was fast. Thanks a lot. Obviously I was too fast reading the doc :-) >> > [...] >> > >> > SET_TARGET_PROPERTIES(PlatformLib PROPERTIES >> > DEFINE_SYMBOL USE_TRACER) >> > >> >

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Christian Ehrlicher
> Von: Andreas Pokorny > Hello, > Wow that was fast. Thanks a lot. > > 2009/2/20 Eric Noulard : > > [...] > > > > SET_TARGET_PROPERTIES(PlatformLib PROPERTIES > > DEFINE_SYMBOL USE_TRACER) > > > > Then you shouldn't have to ADD_DEFINITIONS and REMOVE_DEF

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Andreas Pokorny
Hello, Wow that was fast. Thanks a lot. 2009/2/20 Eric Noulard : > [...] > > SET_TARGET_PROPERTIES(PlatformLib PROPERTIES > DEFINE_SYMBOL USE_TRACER) > > Then you shouldn't have to ADD_DEFINITIONS and REMOVE_DEFINITIONS? I do not understand why.. but D

Re: [CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Eric Noulard
2009/2/20 Andreas Pokorny : > Hi, > We have a platfrom abstraction layer which uses a trace system. But > one of the trace backends also uses the platform abstraction for > network communication. So we want to build the required platform libs > twice with and without tracing. Now I thought I can do

[CMake] Toggling a Preprocessor macro for targets within a single project

2009-02-20 Thread Andreas Pokorny
Hi, We have a platfrom abstraction layer which uses a trace system. But one of the trace backends also uses the platform abstraction for network communication. So we want to build the required platform libs twice with and without tracing. Now I thought I can do the following with cmake: PROJECT(Pa

[CMake] functions & custom commands- what's the trick?

2009-02-20 Thread Aaron Turner
sample code to illustrate problem: cmake_minimum_required(VERSION 2.6) function(clean_standard_files) message(STATUS "running clean_standard_files") endfunction(clean_standard_files) add_custom_target(standard) add_custom_command(TARGET standard COMMAND clean_standard_files WORKING_DI