Bug: The executable is linked against unneeded libraries

Hi!
The executable is linked against unneeded libraries. Here is a patch that corrects CMakeLists.txt to fix it.
The executable is linked against unneeded libraries. Here is a patch that corrects CMakeLists.txt to fix it.