Re: [CMake] How not to copy a link

2012-01-06 Thread Michael Hertling
On 01/06/2012 07:51 PM, Kevin Burge wrote: > Thanks David. These are external libraries built outside of CMake, > without CMake, not imported via any of the import capabilities of cmake, > and that need to be installed alongside my CMake built files. I think > I'm just going to do the install

Re: [CMake] how to setup cmake_c/xx_flags per toolchain?

2012-01-06 Thread Michael Hertling
On 01/07/2012 12:56 AM, Paweł Sikora wrote: > Hi, > > i'm trying to setup a toolchain file for cross-compilation with target specfic > options and afaics cmake dosen't use flags from such file: > > $ cat CMakeLists.txt > cmake_minimum_required( VERSION 2.8.7 ) > project( test CXX ) > add_executa

[CMake] how to setup cmake_c/xx_flags per toolchain?

2012-01-06 Thread Paweł Sikora
Hi, i'm trying to setup a toolchain file for cross-compilation with target specfic options and afaics cmake dosen't use flags from such file: $ cat CMakeLists.txt cmake_minimum_required( VERSION 2.8.7 ) project( test CXX ) add_executable( main main.cpp ) $ cat CMakeToolchain-x86_64-gnu-linux.tx

Re: [CMake] Multiple tests in a single file

2012-01-06 Thread David Doria
On Fri, Jan 6, 2012 at 5:54 PM, Jean-Christophe Fillion-Robin wrote: > Hi David, > > Not too long ago I was browsing the project of a friend who worked on BTK > (The toolkit used by Mokka, a motion kinematic & kinetic analyser) [1]. > > I noticed that he is using cxxtest [2] along with ctest. It s

Re: [CMake] Multiple tests in a single file

2012-01-06 Thread Jean-Christophe Fillion-Robin
Hi David, Not too long ago I was browsing the project of a friend who worked on BTK (The toolkit used by Mokka, a motion kinematic & kinetic analyser) [1]. I noticed that he is using *cxxtest* [2] along with *ctest*. It seems it could to address the use case you are describing. See Example integ

Re: [CMake] [RFC] How to use pkg-config under Windows (... and OSX)?

2012-01-06 Thread Alexander Neundorf
On Tuesday 29 November 2011, Alexander Neundorf wrote: > On Friday 18 November 2011, Patrick Spendrin wrote: > > Am 18.11.2011 02:02, schrieb Alan W. Irwin: > > > Alex, is it possible your KDE Windows developers who are objecting to > > > pkg-config tried a version from years ago when it did not ha

Re: [CMake] CMake + Ninja

2012-01-06 Thread Clifford Yapp
Peter, FYI, I'm seeing a problem with the BRL-CAD build on the Mac with CMake + ninja using the latest git versions - when I try to run tclsh, I get a problem with it trying to link TARGET_INSTALLNAME_DIRlibtcl.8.5.dylib instead of the local libtcl.8.5.dylib in the build directory. This doesn't s

Re: [CMake] How not to copy a link

2012-01-06 Thread Kevin Burge
Thanks David. These are external libraries built outside of CMake, without CMake, not imported via any of the import capabilities of cmake, and that need to be installed alongside my CMake built files. I think I'm just going to do the install with the rename. Requires me to be more explicit,

Re: [CMake] How not to copy a link

2012-01-06 Thread David Cole
Have you considered setting the VERSION and SOVERSION target properties on your libraries instead of doing the symlinks yourself? CMake will build and install the symlinks automatically for you on platforms where they are supported if you set these target properties. http://www.cmake.org/cmake/hel

[CMake] How not to copy a link

2012-01-06 Thread Kevin Burge
I'm trying to copy a file that is a link to another file, but I want the file to be copied, not the link itself. Historically, I've resorted to putting the real file as the source, and then using RENAME to rename the file, which puts more detail into my install commands than I'd like. Example

[CMake] Multiple tests in a single file

2012-01-06 Thread David Doria
Does CTest have a mechanism to run man mini-tests in a single file? I'm looking for something equivalent to the UnitTest++ syntax: TEST(YourTestName) {} TEST(YourOtherTestName){} int main(){  return UnitTest::RunAllTests();} Of course you could do something like: int YourTestName() { } int Your

[CMake] CMake + Ninja

2012-01-06 Thread Clifford Yapp
Peter Collingbourne's ongoing work with CMake support for ninja (and vice versa) was recently announced as being able to build multiple large projects: http://public.kitware.com/pipermail/cmake-developers/2011-November/002490.html BRL-CAD was on the list, and in trials last night I confirmed that

Re: [CMake] Interrupt problems in cmake-gui

2012-01-06 Thread Michael Jackson
In addition the issue is with the Qt base GUI and Qt has all the APIs necessary to accomplish what you need. There is no need for boost to fix the problem. - Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software

Re: [CMake] error of mixed dynamic/static link to Boost in windows VS2008

2012-01-06 Thread Mateusz Loskot
On 6 January 2012 05:30, Forest Yang wrote: >  I am writing a library using boost_regex. For the unit test part, I > am using boost_unit_test_framework and needs to be dynamical linked. > Everything worked great on Linux but not the Windows VS 2008. > >  I used the BoostPro binary installer, got b

Re: [CMake] CPack 2.8.7 RPM: hiding /etc/init.d from %files list

2012-01-06 Thread Eric Noulard
2012/1/6 Deborah Pickett : > Hi everyone, > > I've been porting our commercial, in-house, unmaintainable Linux product > build process to CMake.  It's been remarkably easy, but now I've hit a hurdle. > > I need to produce an RPM that will install on both Red Hat 5 and Suse 11.   > For political re