- mkdir build && cd build
- cmake ..
- make
- ./bin/demo
To provide build and development under Windows there are several dependencies you require. We use CLion for development so this describes how to support build under Windows system.
-
To provide build under Windows system you will require to install cygwin. We suggest to create separate folder for Cygwin under build tools root dir to provide easier configuration. For example my configuration:
- cygwin root dir: D:\build_tools\cygwin
- cygwin download dir: D:\build_tools\cygwin_downloads
- Use latin charset user name. Your user folder should be like this: C:\Users<some_latin_name>
- Download SDL2 development version for MinGW (http://www.libsdl.org/download-2.0.php)
- Copy contents from *-mingw32 folder (one of two) to your MinGW installation (don't forget to make minGW backup!)
- Everything should be ok now.
- libglm-dev
- libglew-dev
- libfreetype6-dev
- sudo ln -s /usr/include/freetype2 /usr/include/freetype2/freetype