Trying to add support for cmake(not working right now).