Re: [CMake] Export a target that must be built in the import environment

2015-03-30 Thread Robert Maynard
So what is the reason for delaying the compilation of the .cpp files? Is it due to the possible compiler differences? If so, you could look at generator expressions to attach compiler requirements to your Mock libraries. It might be best to provide a more complete example of what you are trying to

Re: [CMake] "Emulate" a package result (find_package)

2015-03-30 Thread felix schwitzer
writes: > Our idea was to use add_subdirectory but modules will try to search LIBRARY and they will not find the > library because it's not still compiled... So, how to "emulate" > find_package result for LIBRARY ? Bad idea (I think), is to set LIBRARY-FOUND to true, manually include > dirs (a

[CMake] Export a target that must be built in the import environment

2015-03-30 Thread Miller Henry
I develop a shared library that gets imported into a number of applications (scattered across a number of different repositories). To aid in testing we provide some mocks and fakes, made available by a cmake export files. This works okay, but it isn't right: google mock doesn't guarantee binary

Re: [CMake] Change the default output path in Visual Studio

2015-03-30 Thread Nils Gladitz
On 03/30/2015 03:36 PM, Petr Bena wrote: Hi Nils, Great! Could you please give me some mininal example and perhaps add it to documentation page which is now kind of vague? From what is written there, I suppose that this variable changes the runtime output directory, but for all targets since it'

Re: [CMake] Change the default output path in Visual Studio

2015-03-30 Thread Petr Bena
Hi Nils, Great! Could you please give me some mininal example and perhaps add it to documentation page which is now kind of vague? From what is written there, I suppose that this variable changes the runtime output directory, but for all targets since it's set and until it's changed? eg. if I hav

Re: [CMake] Change the default output path in Visual Studio

2015-03-30 Thread Nils Gladitz
On 03/30/2015 03:25 PM, Petr Bena wrote: I have following problem: I got a project with plugins, each plugin and core is a separate cmake project, however core includes all of them When I configure "core" it also configures all plugins and running "make" also make core, all libraries and plugin

[CMake] Change the default output path in Visual Studio

2015-03-30 Thread Petr Bena
I have following problem: I got a project with plugins, each plugin and core is a separate cmake project, however core includes all of them When I configure "core" it also configures all plugins and running "make" also make core, all libraries and plugins. My problem however is the default locat