I'm new to CLion, i had some expierience with VisualC++, but mostly programmed in Java and Kotlin using IntelliJ. I'm trying to configure SDL2 with CLion and can't find any working solution. Currently i have recommended MinGW from Win-Builds installed (including SDL2), Find_SDL2.cmake file is in my cmake modules and here's my CMakeLists.txt:
Currently i'm getting an error:
c:/mingw/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.3/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x25): undefined reference to `WinMain'
I'm open to do everything from scratch, just want to get all of this to work.
Thanks in advance for any help.