There’s a few choices of interest from winmain-and-main-in-c-extended, wonder if there is any point adding command line arguments say for example to run the show in debug mode like e.g. Wrye Bash.
Will that be for CMake? You can make it work with MSBuild as explained in CMAKE_MAKE_PROGRAM, not sure how that goes with VS on Linux though.