[CMake] How to pack a target/file into multiple packages in Linux?

2012-11-01 Thread Ralph Zhang
Hi guys I'm working on a project which generates quite a few executables, libraries and configs, they need to be packed into different packages for deployment. The problem is, the inclusion of those targets/files is not mutual exclusive. One target/file can belong to multiple packages. I'm using

[CMake] Disabling Argument Parsing in CMake -P Scripts

2012-11-01 Thread Eskandar Ensafi
Hello, I often find it very useful to run CMake scripts of the form "cmake -P script-name arg1 arg2 ..." as a cross-platform scripting solution that doesn't rely on Perl, Python, etc. One major limitation is that CMake continues to parse all arguments after the script name. For example, if ar

Re: [CMake] CMake 2.8.10 available for download

2012-11-01 Thread Orion Poplawski
On 10/31/2012 07:45 PM, David Cole wrote: On behalf of myself, Ken, Bill, Brad, Alex, Eike, Steve, Eric, Zach, Ben and the rest of the CMake team from all around the world, we are pleased to announce that CMake 2.8.10 is now available for download at: http://www.cmake.org/files/v2.8/?C=M;O=D

Re: [CMake] SWIG generated .cxx file location issue.

2012-11-01 Thread Hugh Sorby
Finally, I have got around to this again. My problem is that my swig files are a sibling directory of the python where the CMakeLists.txt file is so I specify the relative path using '..' If I try and pass through the absolute path of the swig interface files I get a CMake error telling me it c

Re: [CMake] Need suggestion on copying DLLs

2012-11-01 Thread Michael Jackson
I have something like that and gave up and just let VS copy both the release and debug into their proper directories. I'm interested in a better solution. Just my 2 cents. ___ Mike JacksonPrincipal Software Engineer BlueQ

[CMake] Need suggestion on copying DLLs

2012-11-01 Thread Robert Dailey
I have a central repository of third party libraries, each containing its own set of DLLs for debug and release. I have created a custom target that will copy all third party DLLs for debug to the same output directory that Visual Studio will place compiled DLLs and EXEs (I also have a second custo

Re: [CMake] Is it possible to run unit tests in separate processes?

2012-11-01 Thread Matthew Woehlke
On 2012-11-01 18:28, Matthew Woehlke wrote: On 2012-11-01 18:00, Robert Deschambault wrote: Hello, I have a situation where I would like to run a unit test that requires two separate processes. Is it possible to set this up under CTest? AFAIK, yes, if you can write a single process that spawn

Re: [CMake] Is it possible to run unit tests in separate processes?

2012-11-01 Thread Matthew Woehlke
On 2012-11-01 18:00, Robert Deschambault wrote: Hello, I have a situation where I would like to run a unit test that requires two separate processes. Is it possible to set this up under CTest? AFAIK, yes, if you can write a single process that spawns and waits on your other processes. (If you

Re: [CMake] Is it possible to run unit tests in separate processes?

2012-11-01 Thread Leif Walsh
I'd write a test that forks. Robert Deschambault writes: > Hello, > > I have a situation where I would like to run a unit test that requires two > separate processes. Is it possible to set this up under CTest? > > Thanks. > > Bob -- Cheers, Leif -- Powered by www.kitware.com Visit other Kit

[CMake] Change RPATH at the packaging stage

2012-11-01 Thread Vyacheslav Karamov
Hi All! Is it possible to change rpath at the packaging stage? I have CMake based project with CPack directives in its CMake script: if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake") SET(install_dir "/opt/chatterbox") SET(CMAKE_SKIP_BUILD_RPA

Re: [CMake] CMake 2.8.9 CMake-GUI locks up during initial configuration?

2012-11-01 Thread David Cole
What's output do you see before it locks up? Does it still happen with CMake 2.8.10? (just released yesterday...) On Thu, Nov 1, 2012 at 11:16 AM, Kent Williams wrote: > OS: Windows 7 (64-bit) > CMake 2.8.9 > generator: NMake Makefiles > Trying to configure ITK (with my patches) > > Problem: CMa

[CMake] CMake 2.8.9 CMake-GUI locks up during initial configuration?

2012-11-01 Thread Kent Williams
OS: Windows 7 (64-bit) CMake 2.8.9 generator: NMake Makefiles Trying to configure ITK (with my patches) Problem: CMake-GUI seems to lock up -- the progress bar moves about 10% to the right and stops, and the process output from the command line CMake stops. If I run the configure from the command

Re: [CMake] GenerateExportHeader for module library

2012-11-01 Thread Clinton Stimpson
On Nov 1, 2012, at 8:01 AM, Stephen Kelly wrote: > Gregoire Aujay wrote: > >> Hello, >> >> I am doing my tests with visual 2008 and mingw. >> >> As far as I understand a module is like a shared library that cannot be >> linked. Instead it is dynamically loaded and then we find and use symbols

Re: [CMake] GenerateExportHeader for module library

2012-11-01 Thread Stephen Kelly
Gregoire Aujay wrote: > Hello, > > I am doing my tests with visual 2008 and mingw. > > As far as I understand a module is like a shared library that cannot be > linked. Instead it is dynamically loaded and then we find and use symbols > in it. It is like doing the linker's job manually at runtim

[CMake] Passing linker argument in a compiler independent way in CMake?

2012-11-01 Thread mchalls
I have a project with both GCC and Clang used. I need to pass an option to the linker. I tried to used CMake this way: SET_TARGET_PROPERTIES(mytarget PROPERTIES LINK_FLAGS "--allow-shlib-undefined") However this simply adds the option *--allow-shlib-undefined* to the compiler options. But GCC and

Re: [CMake] How to use file(WRITE... to write the literal string $'\r' to a file

2012-11-01 Thread Alan W. Irwin
On 2012-10-31 20:24-0400 David Cole wrote: This works for me: file(WRITE "w.txt" "$'\\r'") and Matthew came to a similar conclusion. Thanks to both of you for this suggested simplification which also works here for me. Alan __ Alan W. Irwin Astronomical research aff