Re: [CMake] How to get a variable that is defined in another CMakeLists.txt file

2006-12-20 Thread Alexander Neundorf
Original-Nachricht Datum: Wed, 20 Dec 2006 11:27:45 -0500 Von: Mike Jackson <[EMAIL PROTECTED]> An: David Cole <[EMAIL PROTECTED]> Betreff: Re: [CMake] How to get a variable that is defined in another CMakeLists.txt file > That did not seem to work either. Basically I am tryi

Re: [CMake] How to get a variable that is defined in another CMakeLists.txt file

2006-12-20 Thread Axel Roebel
On Wednesday 20 December 2006 23:38, Mike Jackson wrote: > So in Project B's CMakeLists.txt file I have: > > SUBDIRS(${PROJECT_SOURCE_DIR}/Project_A) > > ADD_EXECUTABLE( MyProgram ${SOURCES}) > TARGET_LINK_LIBRARIES( MyProgram ${A_LIB_OUTPUT_NAME}) As far as I understand it variables def

Re: [CMake] How to get a variable that is defined in another CMakeLists.txt file

2006-12-20 Thread Mike Jackson
On Dec 20, 2006, at 3:15 PM, Axel Roebel wrote: On Wednesday 20 December 2006 17:27, Mike Jackson wrote: That did not seem to work either. Basically I am trying to set a place where we can set the names of the libraries and apps and have those found by other projects that depend on these base

Re: [CMake] How to get a variable that is defined in another CMakeLists.txt file

2006-12-20 Thread Axel Roebel
On Wednesday 20 December 2006 17:27, Mike Jackson wrote: > That did not seem to work either. Basically I am trying to set a > place where we can set the names of the libraries and apps and have > those found by other projects that depend on these base libraries. > >I have noticed that if you "I

Re: [CMake] compile header file for precompiled gcc headers

2006-12-20 Thread Maik Beckmann
Am Mittwoch, den 20.12.2006, 12:28 +0100 schrieb frederic heem: > > Note that cmake has a bug in which it reports the error at FindXSD.cmake:55, > whereas the mistake is in PCHSupport.cmake. > Then the marco tries to copy the precompiled header to the build directory > but > fails because the

[CMake] -fPIC and precompiled header

2006-12-20 Thread frederic heem
Hi, Is there a nice way to find out if a target is using -fPIC ? Indeed, this information is needed for generating compiled header. At the moment, a kludge is to use the following code: #If the target is a shared library, add -fPIC to compile GET_TARGET_PROPERTY(_targetType ${_targetName}

Re: [CMake] How to get a variable that is defined in another CMakeLists.txt file

2006-12-20 Thread Mike Jackson
That did not seem to work either. Basically I am trying to set a place where we can set the names of the libraries and apps and have those found by other projects that depend on these base libraries. I have noticed that if you "INCLUDE(${PROJECT_SOURCE_DIR}/ FindHDF.cmake)" a file, in this

[CMake] ctest and parallel build support

2006-12-20 Thread Darby J Van Uitert
Hello, How can I have the build portion of running ctest -D Experimental use the -j option and do a parallel build? I normally do a make -j 4 and want to do something similar when building an Experimental (or Nightly or Continuous build for that matter). Thanks. Sorry if this is obvious. -

Re: [CMake] compile header file for precompiled gcc headers

2006-12-20 Thread frederic heem
On Monday 18 December 2006 1:47 pm, Maik Beckmann wrote: > Am Montag, den 18.12.2006, 13:33 +0100 schrieb Maik Beckmann: > > > Even more intelligent ;) > > Maik Hi, The new macro generates an error: CMake Error: Error in cmake code at /home/heefre/svn/trunk/voxgratia/OpalTester/cmake/modules/FindX

Re: [CMake] How to get a variable that is defined in another CMakeLists.txt file

2006-12-20 Thread Sylvain Benner
You can inherit from the top level CMakelists.txt variables. So if the GET_DIRECTORY_PROPERTY command does not work for your case, you can use the SET command in the top level CMakeLists.txt which calls the command ADD_SUBDIRECTORY of your libraries A and B. Something like: IF(condition) S

Re: [CMake] moc includes from source directory

2006-12-20 Thread Alexander Neundorf
Von: Craig Bradney <[EMAIL PROTECTED]> > On Monday 18 December 2006 19:40, Alexander Neundorf wrote: > > Von: Craig Bradney <[EMAIL PROTECTED]> > > > > > Hi, > > > > > > I'm wondering if theres an option or setting I have missed for outof > > > source builds. > > > > > > When you build Scribus ou

Re: [CMake] source directories

2006-12-20 Thread Alexander Neundorf
Hi, Von: "Mehdi Rabah" <[EMAIL PROTECTED]> > Hi everyone, > > I have another simple question : is there a way to tell cmake to search > some > directories for sources (not include files) > Let's say I have: > > add_executable(exec src/source1 src/source2) > > and I'd prefer having somehting li

Re: [CMake] Changing EXECUTABLE_OUTPUT_PATH location

2006-12-20 Thread Philippe Poilbarbe
Alexander Neundorf a écrit : ... I have defined EXECUTABLE_OUTPUT_PATH to set this general bin directory and I did try to change the output name (OUTPUT_NAME property of the target) for the helper programs. But it did not work because the value of EXECUTABLE_OUTPUT_PATH is always prepended to th