Clone the CloudCompare project and checkout the correct version tag (to the one you want to build the plugin for). Also follow all the preparation instructions of the CloudCompare project. For example ...