[CMake] On adding external projects and libraries, using Boost as a primary learning vehicle

2017-01-17 Thread Veikko Eeva
Hi! I'm relatively new to CMake and I'm trying to use https://github.com/veikkoeeva/cmaketest as a learning vehicle. My goal is to make a small, but sufficiently self-contained "Hello, World" project with a few other added projects. It looks to me this e-mail list might be a format suitable fo

Re: [CMake] How to use a generated linker map with a shared library?

2017-01-17 Thread Paul Smith
On Tue, 2017-01-17 at 13:20 -0500, Paul Smith wrote: > I wonder whether _fini and _init need to be exported in order to > properly handle global ctor/dtor when the library is loaded/unloaded? >  Hm.  I may need to do some experimentation here. FWIW I tried some experimentation with both dynamic li

Re: [CMake] How to use a generated linker map with a shared library?

2017-01-17 Thread Paul Smith
On Mon, 2017-01-16 at 09:07 -0700, clin...@elemtech.com wrote: > > Yes, thanks for that info.  My situation is that I need to force ALL  > > symbols to be private, even those from external static shared libraries  > > that I'm linking in (whose symbols have global visibility by default). > > Have

Re: [CMake] Using XCODE_PRODUCT_TYPE to make kexts

2017-01-17 Thread Harry Mallon
Hi Gregor, With a CMake file similar to the following I seem to be able to make proper kexts with the latest nightly 3.7.20170113-g26509. At least they seem to be working, I have been bitten before. "kextutil -nt X.kext" is useful for testing them. This could close the issue https://gitlab.kit

Re: [CMake] Add dependencies to the automoc/autorcc target?

2017-01-17 Thread Yves Frederix
Works like a charm. Thanks a lot! Yves On Tue, Jan 17, 2017 at 1:46 PM, Nils Gladitz wrote: > On 01/17/2017 12:02 PM, Yves Frederix wrote: > >> Hi all, >> >> I have a situation in which I would need to define a dependency for >> the automoc target. Is it possible to do this somehow? > > > https:

Re: [CMake] Add dependencies to the automoc/autorcc target?

2017-01-17 Thread Nils Gladitz
On 01/17/2017 12:02 PM, Yves Frederix wrote: Hi all, I have a situation in which I would need to define a dependency for the automoc target. Is it possible to do this somehow? https://cmake.org/cmake/help/v3.7/prop_tgt/AUTOGEN_TARGET_DEPENDS.html The Documentation seems to imply this is AUTO

Re: [CMake] Add dependencies to the automoc/autorcc target?

2017-01-17 Thread Yves Frederix
Hi Jacob, Thanks for your answer. I am aware that add_custom_command() does not create a target, hence the call to add_custom_target(generate_files), followed by add_custom_command(TARGET generate_files...). The presence of the sleep command is for illustration purposes only. It delays the genera

Re: [CMake] Add dependencies to the automoc/autorcc target?

2017-01-17 Thread Jakob van Bethlehem
Hej Yves, The problem is that the 'add_custom_command' does *NOT* create a new target, which seems to be what you assume, see https://cmake.org/cmake/help/v3.0/command/add_custom_command.html The signature you're using is supposed to be used to *add* a custom command to an *existing* target. In o

[CMake] Add dependencies to the automoc/autorcc target?

2017-01-17 Thread Yves Frederix
Hi all, I have a situation in which I would need to define a dependency for the automoc target. Is it possible to do this somehow? Basically, I have a setup in which a resource that is to be embedded is generated by another target. However, due to parallelism in the build and the lack of a depend