use cmake for finding the libraries