Re: [CMake] Adding to RUN_TESTS target

2012-10-24 Thread Matthew Woehlke
(re-send to list) On 2012-10-24 17:44, Robert Dailey wrote: Can I extend RUN_TESTS to execute more tests of my choosing? RUN_TESTS will only execute tests defined in the directory of the project I opened or below. I want to add some tests to it that are created prior to that project. -- Powered

Re: [CMake] Adding to RUN_TESTS target

2012-10-24 Thread Robert Dailey
Thanks David. I don't mind creating a custom target for this, but I'm not sure how to invoke CTest manually with the tests in question. What commands would I run? On Wed, Oct 24, 2012 at 6:15 PM, David Cole wrote: > The ctest command that is run by RUN_TESTS is not extensible at the moment. > >

Re: [CMake] Adding to RUN_TESTS target

2012-10-24 Thread David Cole
The ctest command that is run by RUN_TESTS is not extensible at the moment. However, you can use add_custom_target to make your own test target (just don't name it "test" or "RUN_TESTS"... ;-) which can do whatever you want. HTH, David On Wed, Oct 24, 2012 at 5:44 PM, Robert Dailey wrote: > C

[CMake] Adding to RUN_TESTS target

2012-10-24 Thread Robert Dailey
Can I extend RUN_TESTS to execute more tests of my choosing? RUN_TESTS will only execute tests defined in the directory of the project I opened or below. I want to add some tests to it that are created prior to that project. -- Powered by www.kitware.com Visit other Kitware open-source projects a

Re: [CMake] Automatic building app version if any one of the dependency is changed.

2012-10-24 Thread Matthew Woehlke
On 2012-10-17 15:24, Vivek Goel wrote: Using CMake I am generating a common version file. version.h which contains current svn version of source code. In all application main.c I am including this file. Now every application is depending on this version.h and everything got rebuild. I want to ch

[CMake] CMake 2.8.10-rc3 ready for testing!

2012-10-24 Thread David Cole
The CMake 2.8.10 release candidate stream continues! This is the last RC unless somebody finds a critical, must-fix issue with it. You can find the source and binaries here: http://www.cmake.org/files/v2.8/?C=M;O=D This email is also available as blog posts: http://www.kitware.com/blog/home

Re: [CMake] FindPackage(Ruby) on Ubuntu LTS

2012-10-24 Thread Chris Müller
Am 24.10.2012 17:57, schrieb David Cole: The following 5 commits were merged to 'master' for FindRuby.cmake *after* CMake 2.8.7, and probably fix the problem you're seeing. Can you try with 2.8.8 or later? I've build CMake 2.8.9 directly from the sources and it works here for a simple example.

Re: [CMake] FindPackage(Ruby) on Ubuntu LTS

2012-10-24 Thread Chris Müller
Am 24.10.2012 17:58, schrieb David Cole: On Wed, Oct 24, 2012 at 11:57 AM, David Cole wrote: The following 5 commits were merged to 'master' for FindRuby.cmake *after* CMake 2.8.7, and probably fix the problem you're seeing. Can you try with 2.8.8 or later? I'll check that. Also if the

Re: [CMake] FindPackage(Ruby) on Ubuntu LTS

2012-10-24 Thread David Cole
On Wed, Oct 24, 2012 at 11:57 AM, David Cole wrote: > On Wed, Oct 24, 2012 at 9:36 AM, Chris wrote: >> Hio, >> >> I have some problems with the CMake-Module findRuby.cmake with using ruby1.8 >> and ruby1.9 on Ubuntu 12.04 LTS (via apt). >> >> I'm not sure, but i guess it worked some month ago and

Re: [CMake] FindPackage(Ruby) on Ubuntu LTS

2012-10-24 Thread David Cole
On Wed, Oct 24, 2012 at 9:36 AM, Chris wrote: > Hio, > > I have some problems with the CMake-Module findRuby.cmake with using ruby1.8 > and ruby1.9 on Ubuntu 12.04 LTS (via apt). > > I'm not sure, but i guess it worked some month ago and its maybe broken due > to an update (or i missed some import

Re: [CMake] Relink to shared libs

2012-10-24 Thread Leif Walsh
David, I have had some build time success by adopting the ninja generator. It's got some dependency issues but it's workable, and though it doesn't solve the relinking issue, it does make builds generally a lot faster. Sent from my iPhone On Oct 24, 2012, at 10:35, DavidAllen wrote: > I agr

Re: [CMake] Relink to shared libs

2012-10-24 Thread DavidAllen
I agree with Leif Walsh I am currently looking at replacing my unix makefile (linux+gmake, solaris+make/gmake) and Windows VS projects, with cmake. For the makefiles I get gcc to output dependency files based on header file usage, using gcc options -MM -MF -MP -MT. This has worked really wel

Re: [CMake] how to find current Windows build configuration?

2012-10-24 Thread Petr Kmoch
Hi Kent. As you say, there is no "current build type" in Visual Studio; that depends on what the user selects in the combo box. If you only need this information at build time, you can use the generator expression $ for this purpose. See the documentation of add_custom_command(); I also believe ge

[CMake] how to find current Windows build configuration?

2012-10-24 Thread Kent Williams
On platforms other than Windows, the build type is a single value stored in CMAKE_BUILD_TYPE, and can be accessed if you want your build to different things in Debug, Release, etc modes. On Windows with Visual Studio, there's a variable CMAKE_CONFIGURATION_TYPE that is a list of the builds that wi

[CMake] FindPackage(Ruby) on Ubuntu LTS

2012-10-24 Thread Chris
Hio, I have some problems with the CMake-Module findRuby.cmake with using ruby1.8 and ruby1.9 on Ubuntu 12.04 LTS (via apt). I'm not sure, but i guess it worked some month ago and its maybe broken due to an update (or i missed some important aspect in my setup) A simple find_package(Ruby) c

[CMake] (no subject)

2012-10-24 Thread Nico Schlömer
Hi all, I'd like to create a shared library that uses another toolkit Foobar, so within the main CMakeLists.txt I write TARGET_LINK_LIBRARIES("mylib" ${Foobar_LIBRARIES}) to avoid undefined symbols (I link with -Wl,-no-undefined). ${Foobar_LIBRARIES} consists of {foobarA;foobarB;foobarC}. This p