Having issues compiling with Cmake on Windows

Using the source from the main branch on Windows 7, after having downloaded the additional dependencies from the wiki and placed them into my MinGW root folder as instructed, cmake says it can’t find lua. Here’s a screenshot: http://puu.sh/bJrjF/2cc6b86580.png
It says at the top it only works on linux, how can it be made to work on Windows as well? I’d also like to say I have no idea how to use Cmake, so maybe I’m doing something wrong that’s really obvious and stupid. sorry.
Oh and the IDE is Clion if that helps.

The makefiles and the code::blocks project files are the ones that are frequently used. I’m not confident that the CMake file works.