[CMake] Antwort: Re: Linked Resources in Eclipse Generator

2014-02-05 Thread A . Grieco
Hey Mister Neundorf, thanks for the quick reply. Problems apear not with the generated files explicit, but with the linked resources in general. In our case the "GDB Hardware Debugging" and the "Subversive" Plugin seem to throw cryptic exceptions, just because of the linked resources. If they a

[CMake] Using a toplevel CMakeList.txt to build all sub projects at once.

2014-02-05 Thread PCMan
Hello, I'm PCMan, one of the developers of LXDE desktop (now LxQt after merged with Razor-qt project). http://lxde.org/ and http://razor-qt.org/ We're migrating from gtk+ to Qt and autotools to CMake and encountered some issues. There are many small modules or components in our project. Each of th

Re: [CMake] How to read and compile dynamically-generated list of cpp files

2014-02-05 Thread Matthew Woehlke
On 2014-02-03 11:44, gimmeamilk gimmeamilk wrote: I have a custom tool that processes a given list of IDL files and produces a number of .cpp and .h files as output. I want to add those files to the list of things to compile in my CMakeLists, and also model the dependencies those files have on th

Re: [CMake] Linked Resources in Eclipse Generator

2014-02-05 Thread Alexander Neundorf
On Wednesday, February 05, 2014 03:19:19 PM a.gri...@erhardt-leimer.com wrote: > Hey Guys, > > one litte question. We are using the "Eclipse CDT4 Generator" and some > plugins can't work with the generated linked resources. Setting the > variable CMAKE_ECLIPSE_GENERATE_LINKED_RESOURCES=FALSE short

[CMake] Setting Xcode Properties

2014-02-05 Thread Alexander von Below
Hello CMake List, I have inherited a cross-platform project, and have the challenge of bringing it up to par … How do I set an "Xcode Property", like STRIP_STYLE = "non-global" in CMake? I have searched the web and apparently things changed between version 2.8.4 and 2.8.5 I have tried

Re: [CMake] Dependencies

2014-02-05 Thread Phil Smith
Thanks, Petr. This sounds like what we need, but I must be missing something. I have: SET( ZFPE_FILES FOO.asm ) (and of course many more files in that variable). Then later: add_library(zfpe ${ZFPE_FILES}) set_property(SOURCE FOO.asm PROPERTY OBJECT_DEPENDS BAR.mac) (all files have explicit p

Re: [CMake] Dependencies

2014-02-05 Thread Zaak Beekman
I might also add that the set_property() approach has an additional advantage over the set_source_files_properties(): The APPEND and APPEND_STRING options allow you to add properties like dependencies without overwriting the values which already exist. > Hi Phil. > > >> If your FOO.asm is used as

[CMake] Linked Resources in Eclipse Generator

2014-02-05 Thread A . Grieco
Hey Guys, one litte question. We are using the "Eclipse CDT4 Generator" and some plugins can't work with the generated linked resources. Setting the variable CMAKE_ECLIPSE_GENERATE_LINKED_RESOURCES=FALSE shortens the entry in the .project file, but it still exists. Is there any way to really a

Re: [CMake] How to manage dependencies between projects in Visual Studio

2014-02-05 Thread Luca Gherardi
Actually a solution for this is using add_subdirectory(). The problem is that I use two out-of-source build directories, one for building A and one for B. If I use some directory the files generated during the compilation of A will be stored: - in the out-of-source build folder of solution

Re: [CMake] How to manage dependencies between projects in Visual Studio

2014-02-05 Thread Petr Kmoch
Sorry, I've never used either functionality myself. I just wanted to point out what exists. Petr On Wed, Feb 5, 2014 at 2:04 PM, Luca Gherardi wrote: > Hi Peter, > > > > I tried to use the include_external_msproject(PROJECT_NAME PATH_TO_VCXPROJ) > > > > The project is included in the solution,

Re: [CMake] How to manage dependencies between projects in Visual Studio

2014-02-05 Thread Luca Gherardi
Hi Peter, I tried to use the include_external_msproject(PROJECT_NAME PATH_TO_VCXPROJ) The project is included in the solution, however when I try to build the solution VS returns the following error: “The operation could not be completed. The parameter is incorrect” No other informa

Re: [CMake] VERBOSE environment variable

2014-02-05 Thread hjuvi
> http://www.cmake.org/Bug/view.php?id=3378 Thank you, I had not searched in the buglist... The problem is that "VERBOSE=" is also verbose (with "dependee..." messages). In my case, "VERBOSE=" is not given in make arguments, it is an exported environment variable (export VERBOSE). The detect

Re: [CMake] How to manage dependencies between projects in Visual Studio

2014-02-05 Thread Petr Kmoch
Hi Luca. You could look into the CMake command include_external_msproject(), or into the ExternalProject module. Petr On Wed, Feb 5, 2014 at 12:19 PM, Luca Gherardi wrote: > I'm working with Visual Studio and I need to create the CMakeLists files > for the following scenario. > > > > I have a

[CMake] How to manage dependencies between projects in Visual Studio

2014-02-05 Thread Luca Gherardi
I'm working with Visual Studio and I need to create the CMakeLists files for the following scenario. I have a project A, which contains the sources for a library. This project has its own CMakeLists and generates a lib (add_library). I have a second project B, which contains the sources fr

Re: [CMake] CMake and shared|static/release|debug?

2014-02-05 Thread Johannes Zarl
Hi, On Tuesday, 4. February 2014, 23:41:55, Littlefield, Tyler wrote: > I've tried this a few different ways and ran into issues. If someone > wouldn't mind pointing out where I'm going wrong, I would appreciate it. > (for example if there's a better way to do what I'm trying). It would help if y

Re: [CMake] VERBOSE environment variable

2014-02-05 Thread Mateusz Łoskot
On 5 February 2014 08:25, hjuvi wrote: > Hello, > > I can't find the description of VERBOSE environment variable effect on > compilation. > Experiment has shown me that: > - exporting VERBOSE (without setting the value), implies that "Dependee ... > is newer than depender ..." messages are shown >

Re: [CMake] OS-X app bundle - executable name vs bundle name

2014-02-05 Thread Mike Krus
Hi James On 29 Jan 2014, at 15:12, James Turner mailto:james.tur...@kdab.com>> wrote: I’m experimenting with using Cmake’s bundle support on OS-X for a project. (Up until now I have assembled the bundle by hand using a separate script which also creates the DMG). I have the situation, that I ne

[CMake] VERBOSE environment variable

2014-02-05 Thread hjuvi
Hello, I can't find the description of VERBOSE environment variable effect on compilation. Experiment has shown me that: - exporting VERBOSE (without setting the value), implies that "Dependee ... is newer than depender ..." messages are shown - exporting VERBOSE=1 (or whatever the value, even 0

Re: [CMake] Dependencies

2014-02-05 Thread Petr Kmoch
Hi Phil. If your FOO.asm is used as a source file (i.e. it's listed in an add_executable() or add_library() command), then you can use the source file property OBJECT_DEPENDS for that: add_executable(myexe FOO.asm other.file one.more) set_property(SOURCE FOO.asm PROPERTY OBJECT_DEPENDS BAR.m