> 1) Yes, it is not used right now. The flag was done for future to control CUDA and OpenCL in the common way;

It seems to me that you shouldn't add it until you actually need it. You know, YAGNI and stuff.

> It's good idea. I need to think about it.

Well... did you? :smiley:

You changed the usage of the command, but didn't update the usage string. In addition, I'd prefer if the interface was different. As you have it now, the function must be called like this:

    ocv_glob_module_sources(YES NO)

Which is both unclear and backwards incompatible. I'd rather have it called like this:

    ocv_glob_module_sources(EXCLUDE_CUDA)