Re: [CMake] Including a header file fails

2011-02-28 Thread Andreas Pakulat
On 28.02.11 16:55:12, Enrique Izaguirre wrote: > Hello, > > I am trying to include a windows header file in my build. > The simplest way I found is to add the following in the main CMakeLists.txt > file: > > include_directories ("${MYPRJ_SOURCE_DIR}/../../../usr/include/w32api") > add_library (w3

[CMake] Including a header file fails

2011-02-28 Thread Enrique Izaguirre
Hello, I am trying to include a windows header file in my build. The simplest way I found is to add the following in the main CMakeLists.txt file: include_directories ("${MYPRJ_SOURCE_DIR}/../../../usr/include/w32api") add_library (w32api w32api/winbase.h) add_executable (myprj ${hostFiles}) tar

Re: [CMake] Cmake + Cosmic Compiler

2011-02-28 Thread Alexander Neundorf
On Monday 28 February 2011, MS wrote: > - Original Message - > From: "Alexander Neundorf" > To: > Cc: "MS" > Sent: Friday, February 25, 2011 4:50 PM > Subject: Re: [CMake] Cmake + Cosmic Compiler > > > On Friday 25 February 2011, MS wrote: > >> Hi > >> Does anybodyknow whether it would b

Re: [CMake] Apply a patch using cmake

2011-02-28 Thread Alexander Neundorf
On Monday 28 February 2011, Otmane Lahlou wrote: > Hi all, > > Is there a way to apply a patch to my project sources using CMake? Not quite sure what you wan to do... The ExternalProject support has a patch step IIRC, so there you can apply a patch to some 3rd party package. You can also simply

Re: [CMake] tests from list

2011-02-28 Thread Bill Hoffman
On 2/28/2011 9:47 AM, Mihai Sandu wrote: There is a way to run tests from a list? ctest test1 test2 test3 ctest -R test1|test2|test3 -Bill ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opens

Re: [CMake] "make test" to run tests in parallel in CMake 2.8?

2011-02-28 Thread Bill Hoffman
On 2/28/2011 10:07 AM, Michael Wild wrote: On 02/28/2011 03:57 PM, Chris Green wrote: On 2/28/11 8:13 AM, Michael Wild wrote: On 02/28/2011 03:03 PM, Chris Green wrote: Try this: make test ARGS=-j12 Bingo! Thank you, Chris. Just a warning: AFAIK this is undocumented and I found it out

[CMake] Apply a patch using cmake

2011-02-28 Thread Otmane Lahlou
Hi all, Is there a way to apply a patch to my project sources using CMake? Thanks Otmane ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and c

Re: [CMake] Cmake + Cosmic Compiler

2011-02-28 Thread MS
- Original Message - From: "Alexander Neundorf" To: Cc: "MS" Sent: Friday, February 25, 2011 4:50 PM Subject: Re: [CMake] Cmake + Cosmic Compiler On Friday 25 February 2011, MS wrote: Hi Does anybodyknow whether it would be possible to use cross compiler "Cosmic Compiler" toget

Re: [CMake] feature request: MACOSX_BUNDLE for module libs

2011-02-28 Thread David Cole
On Mon, Feb 28, 2011 at 5:25 AM, Michael Wild wrote: > On 02/28/2011 11:17 AM, Jochen Wilhelmy wrote: > > Hi! > > > > after looking into the source of cmake I have seen that > > MACOSX_BUNDLEs are only supported for executables and > > I have not enough insight yet to port it to module library >

Re: [CMake] "make test" to run tests in parallel in CMake 2.8?

2011-02-28 Thread Michael Wild
On 02/28/2011 03:57 PM, Chris Green wrote: > On 2/28/11 8:13 AM, Michael Wild wrote: >> On 02/28/2011 03:03 PM, Chris Green wrote: > >>> Try this: >>> >>> make test ARGS=-j12 > Bingo! > > Thank you, > > Chris. > Just a warning: AFAIK this is undocumented and I found it out by looking at the Ma

Re: [CMake] "make test" to run tests in parallel in CMake 2.8?

2011-02-28 Thread Chris Green
On 2/28/11 8:13 AM, Michael Wild wrote: > On 02/28/2011 03:03 PM, Chris Green wrote: >> Try this: >> >> make test ARGS=-j12 Bingo! Thank you, Chris. -- Chris Green , FNAL CD/ADSS/CET; 'phone (630) 840-2167. IRC: gre...@jabber.fnal.gov, chrisgr...@jabber.dsd.lbl.gov; chissgreen (AIM, Yahoo); ch

Re: [CMake] tests from list

2011-02-28 Thread Rolf Eike Beer
> There is a way to run tests from a list? > > ctest test1 test2 test3 ctest -R "test[123]" Eike ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topi

[CMake] tests from list

2011-02-28 Thread Mihai Sandu
There is a way to run tests from a list? ctest test1 test2 test3 ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: ht

Re: [CMake] "make test" to run tests in parallel in CMake 2.8?

2011-02-28 Thread Michael Wild
On 02/28/2011 03:03 PM, Chris Green wrote: > Hi, > > I would have expected this naively to be a FAQ already, but the almighty > Ge wasn't particularly helpful. If I *have* missed the answer > somehow, please accept my apologies and I'd appreciate a brief pointer > to the right place to find it

[CMake] "make test" to run tests in parallel in CMake 2.8?

2011-02-28 Thread Chris Green
Hi, I would have expected this naively to be a FAQ already, but the almighty Ge wasn't particularly helpful. If I *have* missed the answer somehow, please accept my apologies and I'd appreciate a brief pointer to the right place to find it: I'm investigating upgrading our build system from CM

Re: [CMake] Is there an elegant way to get list of object files participating into a library?

2011-02-28 Thread Micha Renner
Am Sonntag, den 27.02.2011, 21:38 + schrieb Pere Mato Vila: > Hi, > > For the Windows platform I am generating the .DEF files with all defined > symbols to be exported. For this I need to get the list of all object files > (.obj) participating into a library. The question is whether thi

Re: [CMake] feature request: MACOSX_BUNDLE for module libs

2011-02-28 Thread Michael Wild
On 02/28/2011 11:17 AM, Jochen Wilhelmy wrote: > Hi! > > after looking into the source of cmake I have seen that > MACOSX_BUNDLEs are only supported for executables and > I have not enough insight yet to port it to module library > targets. Therefore I'd like to request this as a feature. > If you

[CMake] feature request: MACOSX_BUNDLE for module libs

2011-02-28 Thread Jochen Wilhelmy
Hi! after looking into the source of cmake I have seen that MACOSX_BUNDLEs are only supported for executables and I have not enough insight yet to port it to module library targets. Therefore I'd like to request this as a feature. If you can outline the steps to be done I could try it myself (e.g

Re: [CMake] Is there an elegant way to get list of object files participating into a library?

2011-02-28 Thread Pere Mato Vila
On Feb 28, 2011, at 8:38 AM, Hendrik Sattler wrote: > It's better to have a well-defined API, so you should know what symbols to > export... > Additionally, since gcc can also be selective about the symbols to export, > maybe adding the proper export flags in the code would also be a solution.

Re: [CMake] Is there an elegant way to get list of object files participating into a library?

2011-02-28 Thread Pere Mato Vila
> Are you trying to export all symbols from a shared library, something that > emulates Unix linkers behavior (Microsoft linker has no option for it=? Yes. > > If it is so, then you can create a static library first. Then add custom > command that e.g runs dumpbin with you static library to

Re: [CMake] Is there an elegant way to get list of object files participating into a library?

2011-02-28 Thread Pere Mato Vila
> If you use a Makefile generator, you might utilise the RULE_LAUNCH_LINK > target property for your purpose; see [1] for an example how to access > the object files being incorporated in a library target on *nix. Thanks but I need to find a solution that works for nmake and Visual Studio. The

Re: [CMake] using svn credentials inside ctest script

2011-02-28 Thread John Beuving
Hi, I faced the same problem with our setup. The workaround is probably a good way to actually do the job. However the CTEST_UPDATE_SVN_OPTIONS do work and provide extra information in the svn update command. The problem is that when you don't have SVN credentials cached, credentials are asked