[CMake] How can I get list of object files in a variable?

2008-09-29 Thread zia
Hello! I have a little problems. problem number one How can I get list of object files in a variable? that is I write in CMakeLists.txt SET(CMAKE_C_LINK_EXECUTABLE "c:/linkit.bat ") when linkit.bat echo "%1" > obj.txt echo "%2" >> obj.txt but I am not see list of object files. if I write MES

Re: [CMake] CMAKE_CURRENT_SOURCE_DIR for modules

2008-09-29 Thread Michael Jackson
include(${CMAKE_CURRENT_SOURCE_DIR}/extrastuff.cmake) Just guessing but it seems like it should work.. Mike On Sep 29, 2008, at 6:30 PM, James Bigler wrote: Is it possible to include a file that is local to a module? I want to do this: FIND_PACKAGE(MyPackage) MyPackage.cmake: include(ext

[CMake] CMAKE_CURRENT_SOURCE_DIR for modules

2008-09-29 Thread James Bigler
Is it possible to include a file that is local to a module? I want to do this: FIND_PACKAGE(MyPackage) MyPackage.cmake: include(extrastuff.cmake) ... The problem is that extrastuff.cmake isn't found. Thanks, James ___ CMake mailing list CMake@cmake.

Re: [CMake] CTest: more space for test names in the output of 'make test'?

2008-09-29 Thread Klaus Nowikow
Bill Hoffman wrote: > Klaus Nowikow wrote: >> Hi! >> >> Is there a way to allocate more space for the names of the tests in the >> output of 'make test'? >> [...] > > Funny you should ask. CVS CMake has a new option --max-width or -W > that will do this. Very well. I guess I can wait until thi

Re: [CMake] CTest: more space for test names in the output of 'make test'?

2008-09-29 Thread Bill Hoffman
Klaus Nowikow wrote: Hi! Is there a way to allocate more space for the names of the tests in the output of 'make test'? I am trying to assign my tests meaningful names containing the name of the unit being tested as well as the package containing the unit. But that leads to output like this: [

Re: [CMake] Generating shared libraries on Visual 8.0

2008-09-29 Thread Stefan Buschmann
How do you create those libraries in your CMakeLists.txt? To build a shared library, you usually only need to specify "SHARED" when calling ADD_LIBRARY, e.g. ADD_LIBRARY(MyProject SHARED ${PROJECT_SOURCES}) If you want to decide whether to build static or dynamic libraries based on a variable

[CMake] CTest: more space for test names in the output of 'make test'?

2008-09-29 Thread Klaus Nowikow
Hi! Is there a way to allocate more space for the names of the tests in the output of 'make test'? I am trying to assign my tests meaningful names containing the name of the unit being tested as well as the package containing the unit. But that leads to output like this: [...] 7/ 8 Testing u:

[CMake] Generating shared libraries on Visual 8.0

2008-09-29 Thread Julien Michel
Dear Cmake user, I am still having trouble when trying to generate shared libraries on visual (7.1 and 8.0). I am correctly taggin the __declspec(dllexport)/__declspec(dllimport) when choosing SHARED_LIBRARIES in the cmake configuration process. But When I open the properties of a given li

Re: [CMake] Problem with set_target_properties on mixed-source library

2008-09-29 Thread Martin Apel
Alan W. Irwin wrote: > On 2008-09-29 16:00+0200 Martin Apel wrote: > >> Hi all, >> >> I have a library consisting of multiple sources from Fortran and C, e.g. >> file1.f, file2.f, file3.c. >> I want to generate this library in two different versions, where in one >> of those versions the Fortran fi

Re: [CMake] Problem with set_target_properties on mixed-source library

2008-09-29 Thread Alan W. Irwin
On 2008-09-29 16:00+0200 Martin Apel wrote: Hi all, I have a library consisting of multiple sources from Fortran and C, e.g. file1.f, file2.f, file3.c. I want to generate this library in two different versions, where in one of those versions the Fortran files are compiled with different options

[CMake] Preprocessed linker script

2008-09-29 Thread Vladimir
Hello, I want to link an executable with custom linker script, but my script have to be preprocessed with cpp. I've tried using add_custom_command and add_dependencies: set(MOD_LINKER_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/kernel_mod.ld) add_custom_command(OUTPUT ${MOD_LINKER_SCRIPT} cpp -nostdin

[CMake] Problem with set_target_properties on mixed-source library

2008-09-29 Thread Martin Apel
Hi all, I have a library consisting of multiple sources from Fortran and C, e.g. file1.f, file2.f, file3.c. I want to generate this library in two different versions, where in one of those versions the Fortran files are compiled with different options, in my case with -ipo. That means: libv1.a