It works
But I had to adjust the folder structure in order to make it work:
-Components
|- CMakeLists.txt
|- vtol_att_control
|- CMakeLists.txt
|- ...(other files from folder)
So basically I removed the module folder between (I didn’t check if it works with it too, but I ran in a lot of problems having it). The CMakeLists.txt in the Components folder looks like this:
set(config_module_list_external
vtol_att_control
PARENT_SCOPE
)
include_directories(.)
Thanks a lot for your help @JulianOes