Fixed typo in CMake source code

Linking the base classes now works as expected.