fix a ci error, caused by cmakefile, for cmake, it doesn't work that use SOURCES in ADD_CUSTOM_TARGET for mingw or linux.