Re: [CMake] Code and API review request for Qt5 CMake files

2012-02-29 Thread Rolf Eike Beer
Michael Hertling wrote: > My main conclusion from the above-noted mess among CMake's current > component-aware find modules is that we urgently need a convention > how such modules and config files are intended to work. Hopefully, > we can take a step forward; Qt5's advent is a good opportunity.

Re: [CMake] How to include the generated header file?

2012-02-29 Thread Michael Wild
On 03/01/2012 07:21 AM, Tan, Tom (Shanghai) wrote: > According to the doc, generate_export_header(somelib) generates a file > in the ${CMAKE_CURRENT_BUILD_DIR} called somelib_export.h. > What's the recommended way to include this "somelib_export.h". > #include "somelib_export.h" does not work. A

[CMake] How to include the generated header file?

2012-02-29 Thread Tan, Tom (Shanghai)
According to the doc, generate_export_header(somelib) generates a file in the ${CMAKE_CURRENT_BUILD_DIR} called somelib_export.h. What's the recommended way to include this "somelib_export.h". #include "somelib_export.h" does not work. And ${CMAKE_CURRENT_BUILD_DIR} is empty too. I am using v2.

[CMake] Visual Studio 10 - GenerateDebugInformation always false

2012-02-29 Thread Johannes Sasongko
Is anyone having the problem where CMake creates VS10 project files with GenerateDebugInformation set to false for all (including Debug & RelWithDebInfo) targets? If I remember correctly, this did not happen when using the VS9 generator, but I don't have VS9 handy to test. -- Johannes -- P

Re: [CMake] Functions inherit parent variables?

2012-02-29 Thread Michael Hertling
On 03/01/2012 01:38 AM, Robert Dailey wrote: > I ran a quick test: > > > function( test ) > message( "SOME_TEST: ${SOME_TEST}" ) > endfunction() > > function( start ) > set( SOME_TEST "HELLO WORLD" ) > test() > endfunction() > > start() > > > Seems like a function has access to the calling sc

Re: [CMake] Code and API review request for Qt5 CMake files

2012-02-29 Thread Michael Hertling
On 02/28/2012 10:03 PM, Alexander Neundorf wrote: > ...will reply later in detail. > > Could you please go through the existing find-modules shipped with cmake > which > support COMPONENTS and make a summary of how they handle them ? > > At least FindQt4.cmake be default searches all components

[CMake] Functions inherit parent variables?

2012-02-29 Thread Robert Dailey
I ran a quick test: function( test ) message( "SOME_TEST: ${SOME_TEST}" ) endfunction() function( start ) set( SOME_TEST "HELLO WORLD" ) test() endfunction() start() Seems like a function has access to the calling scope's defined variables. I thought because functions created a new scope, tha

Re: [CMake] cmake snippets

2012-02-29 Thread Andrea Crotti
On 02/29/2012 06:27 PM, Eric Noulard wrote: 2012/2/29 Andrea Crotti: If anyone is interested, I'm collecting cmake-mode yasnippet snippets for Emacs: https://github.com/AndreaCrotti/yasnippet-snippets/tree/master/cmake-mode Is anyone else using it and has some nice snippets to share? I'm not

Re: [CMake] smarter shortcuts with NSIS

2012-02-29 Thread David Cole
On Wed, Feb 29, 2012 at 1:44 PM, Andrea Crotti wrote: > On 02/28/2012 05:53 PM, Eric Noulard wrote: >> >> 2012/2/28 Andrea Crotti: >>> >>> On 02/28/2012 03:42 PM, Eric Noulard wrote: >> Yes more or less beside the fact is CPack is doing more work than that: >>   1) CPack handles CPack-pr

Re: [CMake] smarter shortcuts with NSIS

2012-02-29 Thread Andrea Crotti
On 02/28/2012 05:53 PM, Eric Noulard wrote: 2012/2/28 Andrea Crotti: On 02/28/2012 03:42 PM, Eric Noulard wrote: Yes more or less beside the fact is CPack is doing more work than that: 1) CPack handles CPack-private install location for you (including the installation of the compone

Re: [CMake] find_package(Subversion) fails when run by an automated Jenkins build

2012-02-29 Thread Eric Noulard
2012/2/29 Massaro Alessio : > Hi there, > > > > Awkward behaviour: > > > > My CMakeLists.txt do a find_package(Subversion) > > > > Now, I have a Jenkins build server running under domain user XYZ > > The Jenkins CMake plugin tells me it’s trying to do the following: > > > > “c:\Program Fil

Re: [CMake] cmake snippets

2012-02-29 Thread Eric Noulard
2012/2/29 Andrea Crotti : > If anyone is interested, I'm collecting cmake-mode yasnippet snippets for > Emacs: > > https://github.com/AndreaCrotti/yasnippet-snippets/tree/master/cmake-mode > > Is anyone else using it and has some nice snippets to share? I'm not using it (yasnippet) but this seems

[CMake] find_package(Subversion) fails when run by an automated Jenkins build

2012-02-29 Thread Massaro Alessio
Hi there, Awkward behaviour: My CMakeLists.txt do a find_package(Subversion) Now, I have a Jenkins build server running under domain user XYZ The Jenkins CMake plugin tells me it's trying to do the following: "c:\Program Files\CMake 2.8\bin\cmake.exe" -G "Visual Studio 9 2008"

[CMake] cmake snippets

2012-02-29 Thread Andrea Crotti
If anyone is interested, I'm collecting cmake-mode yasnippet snippets for Emacs: https://github.com/AndreaCrotti/yasnippet-snippets/tree/master/cmake-mode Is anyone else using it and has some nice snippets to share? -- Powered by www.kitware.com Visit other Kitware open-source projects at ht

[CMake] Transitive library dependencies with parallel builds

2012-02-29 Thread Number Cruncher
Do transitive dependencies reduce number of jobs that can be compiled in parallel? If I have two libraries A and B, with an executable C, whose dependencies are described by: add_library(A ${A_SRC}) add_library(B ${B_SRC}) target_link_libraries(B A) add_executable(C ${C_SRC}) targ

Re: [CMake] Question regarding source tree structure and how to find libraries easily within that structure

2012-02-29 Thread Carlton Henderson
Hi Andreas,I too am new to CMake, but let me take a crack at this... someone correct me if there's a better way.You shouldn't need a find module. You only need them when you're including libraries that CMake doesn't already know the location of. Since you're building Library_1 in CMake you can just