Optiroc / SuperFamiconv

Flexible and composable tile graphics converter supporting Super Nintendo, Game Boy, Game Boy Color, Game Boy Advance, Mega Drive, PC Engine and WonderSwan formats.
MIT License
143 stars 20 forks source link

Add cmakelists, getoptw lib for msvc #5

Closed ARM9 closed 7 years ago

ARM9 commented 7 years ago

I was able to make debug and release builds with both mingw and vc++ on windows with this cmakelist. Haven't tested it on OS X.

The getoptw library is LGPL, I added it to get visual studio builds working since Microsoft doesn't provide a getopt implementation.

Optiroc commented 7 years ago

@ARM9 I'm so lost with Windows... Do you know what steps are needed to make the VS2017 tool chain visible to CMake? My hope was that CMake would look for the compiler in known places, but it fails with the message CMake Error in : No CMAKE_CXX_COMPILER could be found.

ARM9 commented 7 years ago

Can you gist the generated CMakeError.log?

Optiroc commented 7 years ago

After some troubleshooting I got it to build with the MS toolchain (I was missing the Windows 8.1 SDK and Windows Universal C Runtime packages). Great! Binary size went from 12MB to 380KB.

Optiroc commented 7 years ago

I published a release with Windows builds. Now I just need to do the homework required to automate Windows 32- and 64-bit builds without needing to open Visual Studio...