improve plugin CMakeLists.txt