The libraries needed to be split from the executable so they can be linked to. The source checks in WIN32 is defined to include Windows headers, but mingw doesn't set that when compiling in Linux. Also, CMake has new functions for setting flags, definitions, and properties.
The libraries needed to be split from the executable so they can be linked to. The source checks in
WIN32
is defined to include Windows headers, but mingw doesn't set that when compiling in Linux. Also, CMake has new functions for setting flags, definitions, and properties.