CMake does not generate makefiles that have wildcard-based rules in them. It generates specific rules for the files that it knows about.

In your example, you are explicitly listing the .o files that comprise your library. In CMake, you would instead explicitly list the source files that contribute to your library, and then let CMake take care of the rest.

Do you need makefiles that have wildcard-based rules in them for some reason?

Couldn't you simply construct a list of the source files, and then, for each element in the list, do an "add_library" call with the source file and a library name constructed from the source file name?