Use CMake without compiling in VS2022?

Hello!
I am a absolute CMake Newbie. So please excuse a maybe dumb question.
Is it possible to use CMake only for collecting files, zip them and install them in a predefined folder?
Why?: I have a VS2022 Project for creating Class Templates, which then goes to the VS2022 Template Folder. I have this Project because i have other projects and there i include my Class Template Project. This makes it simple to edit my Class Template Files within VS2022.
But the i have to go out of VS2022, zip the files (.cpp .h .vstemplate) and manually copy them into the VS2022 Folder. I want to automate this process. So i tought it would be a good idea to make a CMake file in my Class Template Project to automate this project.
I dont need to compile this files because i need raw .h and .cpp files.

I see that i can get rid of addExecutabe and set_property calls in the CMakeList.txt

But the how i can execute the “Build” in VS2022 because if i dont use the addExecutable then there is no Project “Build” Possibility anymore.

Thx a lot

I think i maybe ending up with a small C++ app in the project which zip and copy the files. Seems easier :wink: