Re: [CMake] Hi.. a New bie question

2011-04-07 Thread Rolf Eike Beer
> Hi all, > > I want to create a library out of several sources distributed in > various directory structures. It seems, i need to specify name of all > sources to ADD_LIBRARY command. Is there any other way to do it ? > Keeping CMakeLists.txt file in every sub directory will really help > as

[CMake] Hi.. a New bie question

2011-04-07 Thread AMARNATH, Balachandar
Hi all, I want to create a library out of several sources distributed in various directory structures. It seems, i need to specify name of all sources to ADD_LIBRARY command. Is there any other way to do it ? Keeping CMakeLists.txt file in every sub directory will really help as i need to

Re: [CMake] CMake 2.8.4 RPMs available (finally)

2011-04-07 Thread Orion Poplawski
On 04/05/2011 06:33 AM, Andrea Galeazzi wrote: Fedora isn't listed there but is it possible to have it? 2.8.4 has been submitted to F14. https://admin.fedoraproject.org/updates/cmake-2.8.4-1.fc14 -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division

[CMake] CTest with Purify

2011-04-07 Thread Jason Gochanour
Hello, I've been trying to add purify to our nightly ctest script. I would also like the results of Purify to be posted to our CDash installation. From what I can gather you need add the following lines to include memorychecking into your ctest script. set(CTEST_MEMORYCHECK_COMMAND "C:/Pro

Re: [CMake] multiple targets depending on generated file

2011-04-07 Thread Stephen Kelly
Stephen Kelly wrote: > but sometimes I > still get build failures due to the dbus xml stuff that I haven't tracked > down and which are resolved on the next build. > I think this is because I was missing some add_dependencies(foo dbus_interfaces_xml) in my app, so hopefully that's resolved f

Re: [CMake] multiple targets depending on generated file

2011-04-07 Thread Stephen Kelly
Brad King wrote: >> >> Is this a bug in CMake? It seems there is enough information given that >> CMake could notice the dependency. But maybe it can't quite do it >> because its a separate directory? Maybe cmake can do the >> add_dependencies() automatically? > > This is expected. You need t

Re: [CMake] link static libraries to a share library

2011-04-07 Thread Michael Hertling
On 04/07/2011 07:37 PM, Jiang Xu wrote: > Hi All, > > I am new to cmake, but I really like it after looking into it. > I am in the process to make some changes to our current make file system. > I wonder how can I archieve the following goal using cmake: > > 1. The root directory is features/ >

[CMake] link static libraries to a share library

2011-04-07 Thread Jiang Xu
Hi All, I am new to cmake, but I really like it after looking into it. I am in the process to make some changes to our current make file system. I wonder how can I archieve the following goal using cmake: 1. The root directory is features/ 2. Under root directory, there is a set of subdirectori

[CMake] Status of FindHDF5.cmake in CMake?

2011-04-07 Thread kent williams
Hi! I'm working on some classes for ITK4 that use the HDF library, and I've run into a quandary. If you build & install HDF5 with CMake, you MUST use find_package(HDF5 [REQUIRED] NO_MODULE) in order to use HDF5. If you use the more natural command find_package(HDF5 [REQUIRED]) then the cm

Re: [CMake] DLL and EXE with same base name: clash in VS.

2011-04-07 Thread Alexey Livshits
> CMake uses prefix+base+".pdb" to generate the PDB file name, however I > didn't dig deep enough to find out what `base' is, just that it is > obtained with cmTarget::GetName(). Whether that refers to the target > name or the OUTPUT_NAME, I couldn't find out easily, so you'll have to > experiment

Re: [CMake] Building CLR project OR removing COMPILE_FLAGS

2011-04-07 Thread Neil MacMullen
Thanks Michael, >Usually, CMake has no idea that a ".c" file like src/main.c is to be >treated by a C++ compiler, so it applies the CMAKE_C_FLAGS[_] >variables to the compilation. Thus, you probably need to tweak these >variables to suit your needs instead of the C++ ones. Moreover, note >that the

Re: [CMake] Building CLR project OR removing COMPILE_FLAGS

2011-04-07 Thread Michael Hertling
On 04/07/2011 02:33 PM, Neil MacMullen wrote: > I'm a newcomer to cmake so if I'm missing something obvious please point it > out. Having said that, despite reading the online documentation and doing a > fair amount of googling I haven't found a solution. > > > Specific Questions > ==

[CMake] Building CLR project OR removing COMPILE_FLAGS

2011-04-07 Thread Neil MacMullen
I'm a newcomer to cmake so if I'm missing something obvious please point it out. Having said that, despite reading the online documentation and doing a fair amount of googling I haven't found a solution. Specific Questions 1) Is there a target/generator or some other conf