Michael, the problematic step is ADD_DEPENDENCIES. I don't have any suitable target. The referred CMakeLists.txt has main/main.c. Unfortunately mine does not - just add_subdirectory. I do believe there is a pattern to overcome such issue without nasty hacks. Many thanks. -- Best regards, Ilja Golshtein.