I'd like to write a script, which differ between mac and windows users, something like this:
if (Mac)
do this
if (Windows)
do that
This shall be a script, which starts Cmake and builds the project for the corresponding IDE. All in all:
mkdir build
cd build
if (Mac)
cmake .. -G "Xcode"
if (Windows)
cmake .. -G "Microsoft Visual Studio 2013"
What is the command to differ between those two machines?
I know that for windows you usually have those .bat-files, but Mac can't handle them, can it? Which file-type do I need to use here then?
bash
scripts. You would need to install cygwin on windows ... a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows.