[CMake] can I install subdirs matching a REGEX ?

2012-12-10 Thread Martin Koller
I have a directory tree, which contains a lot subtrees in different levels, all starting with ".Images" e.g. start/def/file1 start/def/.Images/hello start/xyz/blaa/.Images/something There are a lot .Images subdirs and they are actually extracted from a tar file. What I want is to install all thos

[CMake] static and dynamic libraries based on configuration type

2012-12-10 Thread Matt Campbell
Hi, In Visual Studio, I can have a project set to build as a static lib in one configuration and a dynamic lib in another configuration. I cannot figure out how to accomplish this in cmake. If I add two targets, one as STATIC and one as SHARED the targets are added to all configuration types.

[CMake] execute_process with a python script

2012-12-10 Thread Dan Schmidt
Hello, I have a function in a cmake module that is being invoked with the purpose of running some scripts prior to the execution of tests. To do so, there is a call to execute_process to make sure nothing will impede the set-up of the environment for the tests. That runs to completion. The sec

Re: [CMake] Static and DLL builds in single solution

2012-12-10 Thread Bill Hoffman
On 12/8/2012 4:23 PM, Matt Campbell wrote: That’s what I was thinking as well, however, what wasn’t clear to me is how to associate the DLL version with the DLL configuration and the static lib with the static configuration type? Make it will just work, I’ll have to try it I suppose. http://www.

Re: [CMake] Determining debug & release configurations

2012-12-10 Thread Robert Dailey
Thanks for the tips... I think this might be a little overkill, because the solution I was looking at involved the DEBUG_CONFIGURATIONS variable. For multi-configuration generators, you can see if any items in CMAKE_CONFIGURATION_TYPES match what's inside of DEBUG_CONFIGURATIONS. Any match is a DE