Re: [CMake] Generate headers and inherit include_directories

2017-10-05 Thread Michael Ellery
> On Oct 5, 2017, at 3:50 AM, Nagy-Egri Máté Ferenc wrote: > > Hi Michael! > > This is what I wanted to do (only relevant parts showing): > > /// top-level CMakeLists.txt > add_subdirectory(Gripper) > add_subdirectory(examples) > > > /// Gripper/CmakeLists.txt > set(RESULT ${CMAKE_CURRENT_BI

Re: [CMake] Generate headers and inherit include_directories

2017-10-05 Thread Nagy-Egri Máté Ferenc via CMake
Re: [CMake] Generate headers and inherit include_directories maybe a CMake snippet of what you are trying would help clarify, but are you using an interface library for your header-only? I would assume yes - and then have to tried add_dependency() for that library to trigger the file generation? The

Re: [CMake] Generate headers and inherit include_directories

2017-10-03 Thread Michael Ellery
maybe a CMake snippet of what you are trying would help clarify, but are you using an interface library for your header-only? I would assume yes - and then have to tried add_dependency() for that library to trigger the file generation? The dependency will only be resolved when the library is use

[CMake] Generate headers and inherit include_directories

2017-10-03 Thread Nagy-Egri Máté Ferenc via CMake
Hi! I am a seasoned Cmake user but cannot solve a fairly simple problem, so I might be mistaking the forest for the trees. I have a project in which there is a custom_command/custom_target pair that creates a header file as part of a (currently) header-only target. I want to create an imported