Re: [CMake] add_dependencies being ignored for add_custom_command?

2015-10-26 Thread Martin Braun
Gotcha, Iosif, thanks for clearing that up for me. To summarize, I should ... On 26.10.2015 12:51, Iosif Neitzke wrote: > [...] > add_library( somelib ${CMAKE_CURRENT_BINARY_DIR}/Header.hpp > ${CMAKE_CURRENT_BINARY_DIR}/Header.cpp source.cpp ) ...add the generated files as to the target. That l

Re: [CMake] add_dependencies being ignored for add_custom_command?

2015-10-26 Thread Martin Braun
0] https://cmake.org/cmake/help/v2.8.12/cmake.html#command:add_dependencies > > [1] https://cmake.org/cmake-tutorial/#s5 > > On Fri, Oct 23, 2015 at 7:35 PM, Martin Braun wrote: >> Hey, >> >> I'm at a loss here: >> >> I have a command that's run with add_cust

[CMake] add_dependencies being ignored for add_custom_command?

2015-10-23 Thread Martin Braun
Hey, I'm at a loss here: I have a command that's run with add_custom_command(). I need to run it before compiling a library that I add with add_library(), because it generates some header files. This was my first try: file1: {{{ add_custom_command( OUTPUT foo.hpp COMMAND bar ) }}} file