Windows and mac development environment setup and sync?
-
Working on a cross platform desktop software for mac and windows. Actively developing in Visual Studio w/Qt Extension, since I prefer VS and whole project is setup using Visual studio projects (not .pro files). Code is stored in a git repo.
Now I need to compile and test on macOS - and also add some mac specific API calls. What's the best way to setup mac environment so I can add mac specific code/files, compile and test? After I'm done I'd like to check-in changes into git and sync my primary windows dev environment. That way I can keep doing primary development on Windows.
-
@Taytoo said in Windows and mac development environment setup and sync?:
What's the best way to setup mac environment so I can add mac specific code/files, compile and test?
I would suggest to first switch to CMake - it is multi-platform, Visual Studio also supports it. I don't think you can use Visual Studio project/solution files on Mac. With CMake you can do things for specific platforms without breaking other platform builds.
-
Visual studio natively supports CMake so if you use that one you don't need to switch IDE: https://learn.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio
-
@artwaw said in Windows and mac development environment setup and sync?:
@Taytoo qmake is in maintenance mode, do yourself a favour and don't use it? cmake is the way.
I didnt know that VS was using qmake. Is there a guide on how to switch VS QT project to cmake?
-
@Taytoo said in Windows and mac development environment setup and sync?:
I didnt know that VS was using qmake.
I don't know what VS is using - not my toolset. But you mentioned .pro files previously, those are for qmake and that's what I was referring to.