IMPLICIT_DEPENDS - does not work

You shouldn’t need add_custom_command to do that.

This is what I would write:

project(My_Project)

add_executable(My_Project
  "timer_x/src/timer_x.c" 
  # any other *.c file
)

Nothing more. CMake and make should take care of dependency tracking.