>> * I also set link_directories to paths containing the libraries. This is wrong. LINK_DIRECTORIES should be a list of directories, where libraries might be located, but not the libraries itself.