Create a CMake project out of existing Visual Studio Project

I have a tool bar plugin which I developed and build on Windows 11 . I want to build the same plugin on Mac . For that I am going to use a remote build mechanism . I would need to make a CMAKE build project out of the Windows project . Is that possible ? or what are the other ways that I can acheive my goal of making my plugin compatible on Mac