It might be weird, but I happen to need to add a target to a project that is not a C program with main, but a script python.
I’m looking for something like add_executable(), but for my custom command.
Something similar to
add_custom_target( target_name COMMAND python main.py )
where the command will not be called during the build, but during the execution of the target