Re: [CMake] Creating a DLL using .DEF file on MinGW

2012-09-12 Thread Petr Kmoch
Hi, just a wild guess: .def files for C++ projects have to list the mangled names, so if you want the export name to be just "testfunc", it should be declared as 'extern "C"'. Petr On Thu, Sep 13, 2012 at 8:17 AM, Ali Hamdi wrote: > Hello everybody, > > I am trying to create a DLL by using a .

[CMake] Creating a DLL using .DEF file on MinGW

2012-09-12 Thread Ali Hamdi
Hello everybody, I am trying to create a DLL by using a .DEF file and targeting the MinGW gcc-compiler. In my CMakeLists.txt I have this: add_library(MyDll SHARED MyDll.cpp dllmain.cpp stdafx.cpp MyDll.def). I have the following sou

Re: [CMake] Subset testing with CTest

2012-09-12 Thread Robert Dailey
I want to submit to dashboard as well, preferably. In addition, I also want tests of my dependencies (which are usually above the current directory, elsewhere in the tree) to be built & ran as well. On Wed, Sep 12, 2012 at 1:54 PM, David Cole wrote: > Similar to running 'make' in a sub-directory

Re: [CMake] Subset testing with CTest

2012-09-12 Thread David Cole
Similar to running 'make' in a sub-directory to build just that directory and below... running 'ctest' in a sub-directory will just run the tests for that directory. Are you asking to be able just to run the tests, or to submit just those tests to a dashboard? Just running them is already possibl

Re: [CMake] Subset testing with CTest

2012-09-12 Thread Leif Walsh
I prefix test names with the name of the component they test, so a/tests/CMakeLists.txt: add_test(a/test_foo test_foo) b/tests/CMakeLists.txt: add_test(b/test_foo test_foo) Then, ctest -R '^a/' from toplevel works. Sent from my iPhone On Sep 12, 2012, at 14:12, Robert Dailey wrote: > The so

[CMake] Subset testing with CTest

2012-09-12 Thread Robert Dailey
The source repository at our company is structured for two products. Both products have a large amount of shared targets, but there are certain subdirectories in the tree that are product-specific. Each of the product-specific targets have their own unit tests (and all common targets have them as w

Re: [CMake] How to force cmake to always give color o/p

2012-09-12 Thread Vivek Goel
Currently I am using unbuffer command to get this thing done. http://linux.die.net/man/1/unbuffer regards Vivek Goel On Wed, Jun 27, 2012 at 10:45 PM, vivek goel wrote: > CMake currently checks if it is writing to a TTY, and if not it switch > off colors. > Problem is that I am piping make o/

Re: [CMake] problem building llvm with cmake

2012-09-12 Thread william pearson
Hi Bill, Thanks for the quick response. I have done that and the solution compiles properly when I run it manually, but when I click on the .sln file it prompts me to open with c++ or c# which I have installed as well, could this be part of the problem. Regards, Bill On 12 September 2012 1

Re: [CMake] Bug fix requests for the *next* release of CMake...

2012-09-12 Thread Sean McBride
kitware-provided CMake installer/executables should be codesigned with 'Developer ID' for GateKeeper on OS X -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please ke

Re: [CMake] problem building llvm with cmake

2012-09-12 Thread Bill Hoffman
On 9/12/2012 11:39 AM, william pearson wrote: When I look in the directory there are no .sln or proj files. Run cmake with --debug-trycompile, that will leave the .sln files around from the try compile. You can then see what errors you get trying to build them. -- Bill Hoffman Kitware, Inc

Re: [CMake] project() command and make targets

2012-09-12 Thread Robert Dailey
Thanks Bill, I really don't know squat about Linux/Make/NMake -- so this is helpful. On Tue, Sep 11, 2012 at 9:22 PM, Bill Hoffman wrote: > On 9/11/2012 7:17 PM, Robert Dailey wrote: >> >> For some reason I was expecting names specified in project() command >> to become a custom target that I can

[CMake] problem building llvm with cmake

2012-09-12 Thread william pearson
Hi, I have already posted on stackoverflow http://stackoverflow.com/questions/12390957/problems-with-compiling-llvm-on-windows-with-cmake but no help :( I'm trying to compile llvm on windows 7 using these instructions http://llvm.org/docs/GettingStartedVS.html I am using vc++ 2010 express. I hav

Re: [CMake] Problem with DESTDIR in with ExternalProject

2012-09-12 Thread Vivek Goel
OK, thanks. regards Vivek Goel On Tue, Sep 11, 2012 at 5:43 PM, David Cole wrote: > The most reasonable way to achieve this goal would be to write scripts > that replace the configure/build/install steps of the projects that > you want to isolate with DESTDIR. > > Then, inside the script (whic

Re: [CMake] CMake with IDL file generation

2012-09-12 Thread Andreas Haferburg
Here's what we're using (found somewhere on the internet, slightly modified): # MACRO_ADD_INTERFACES(idl_files...) # # Syntax: MACRO_ADD_INTERFACES( [ [...]]) # Notes: should be absolute paths so the MIDL compiler

Re: [CMake] add_custom_target and PRE_BUILD commands added in sub-dir not executing

2012-09-12 Thread Brett Delle Grazie
On 12 September 2012 14:50, Rolf Eike Beer wrote: > Am 2012-09-12 12:36, schrieb Brett Delle Grazie: > >> Hi, >> >> I've come across some strange behaviour when using add_custom_target and >> an >> add_custom_command( PRE_BUILD or PRE_LINK ) in nested projects. >> >> We have a number of static an

Re: [CMake] add_custom_target and PRE_BUILD commands added in sub-dir not executing

2012-09-12 Thread Rolf Eike Beer
Am 2012-09-12 12:36, schrieb Brett Delle Grazie: Hi, I've come across some strange behaviour when using add_custom_target and an add_custom_command( PRE_BUILD or PRE_LINK ) in nested projects. We have a number of static analysis checks that were working using cppcheck. The technique was to

[CMake] Modules // FindICU // call for maintainer

2012-09-12 Thread Sergei Nikulov
Hello, I've found that FindICU/FindICU4C (http://site.icu-project.org/) module is absent in standard cmake installation. Is anybody already volunteered to create one/select from existing and then maintain it? Thank you. -- Best Regards, Sergei Nikulov -- Powered by www.kitware.com Visit other

Re: [CMake] How can I tell the ninja generator on Windows to use cl.exe?

2012-09-12 Thread Nico Weber
On Wed, Sep 12, 2012 at 8:50 PM, Bill Hoffman wrote: > On 9/12/2012 6:00 AM, Nico Weber wrote: >> >> Hi, >> >> when I installed MinGW, `cmake -G Ninja` started producing ninja files >> that use MinGW's gcc to compile source files. How can I tell cmake to >> generate ninja files that use cl.exe ins

Re: [CMake] How can I tell the ninja generator on Windows to use cl.exe?

2012-09-12 Thread Bill Hoffman
On 9/12/2012 6:00 AM, Nico Weber wrote: Hi, when I installed MinGW, `cmake -G Ninja` started producing ninja files that use MinGW's gcc to compile source files. How can I tell cmake to generate ninja files that use cl.exe instead? I tried searching for "cmake ninja mingw msvs" and a few related

Re: [CMake] Add Find*.cmake files for Pantheios and STLSoft to distro?

2012-09-12 Thread Michael Wild
On 09/12/2012 12:41 PM, Philipp Berger wrote: About a few weeks ago I asked for help regarding Find*.cmake files for Pantheios. With your help, I managed to build a Find file for Pantheios and its associated library STLSoft. My question now is: Where can I submit those files to be included in th

[CMake] Add Find*.cmake files for Pantheios and STLSoft to distro?

2012-09-12 Thread Philipp Berger
About a few weeks ago I asked for help regarding Find*.cmake files for Pantheios. With your help, I managed to build a Find file for Pantheios and its associated library STLSoft. My question now is: Where can I submit those files to be included in the offical CMake distro so that everyone can use

Re: [CMake] How can I tell the ninja generator on Windows to use cl.exe?

2012-09-12 Thread Peter Kümmel
On 12.09.2012 12:00, Nico Weber wrote: Hi, when I installed MinGW, `cmake -G Ninja` started producing ninja files that use MinGW's gcc to compile source files. How can I tell cmake to generate ninja files that use cl.exe instead? I tried searching for "cmake ninja mingw msvs" and a few related

[CMake] add_custom_target and PRE_BUILD commands added in sub-dir not executing

2012-09-12 Thread Brett Delle Grazie
Hi, I've come across some strange behaviour when using add_custom_target and an add_custom_command( PRE_BUILD or PRE_LINK ) in nested projects. We have a number of static analysis checks that were working using cppcheck. The technique was to add a non-automatic global custom target called 'all_s

[CMake] How can I tell the ninja generator on Windows to use cl.exe?

2012-09-12 Thread Nico Weber
Hi, when I installed MinGW, `cmake -G Ninja` started producing ninja files that use MinGW's gcc to compile source files. How can I tell cmake to generate ninja files that use cl.exe instead? I tried searching for "cmake ninja mingw msvs" and a few related terms, but I didn't find anything. Thank

Re: [CMake] Problems detecting source-code changes in continuous integration ctest script

2012-09-12 Thread Kristofer Tingdahl
Dear David, thanks for the solution. As I digged into the source-code, I found that this was probably a solution. Best regards, Kristofer Tingdahl -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep message