[CMakeLists] edit condition for Kinect and  refactor