by the way . If you don't wanna build all projects in directory <your workspace path>/src , you can add -DCATKIN_WHITELIST_PACKAGES="your_pkg1_name;your_pkg2_name" in CMake options that located in File->Settings->Build,Execution,Deployment->CMake