Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

CMake Windows Compilation

jlppc edited this page Nov 12, 2018 · 2 revisions
  • Download SFML here (Take the GCC 6 32 bits version)
  • Extract in a folder
  • Add lib and include folder of SFML in the Windows path :
    set PATH=%PATH%;C:\_where_is_the_folder\SFML\lib
    set PATH=%PATH%;C:\_where_is_the_folder\SFML\include
    To see if the folder is in the Path, type in CMD : path

  • Download MinGW (with a link below in the SFML download page)
  • Extract
  • Add the bin folder of MinGW in the Windows path :
    set PATH=%PATH%;C:\where_is_the_folder\mingw32\bin

  • Download and install cmake
  • In the cmake installation, don't forget to check "Add CMake to the system PATH"
  • If this is not work, type in CMD: set PATH=%PATH%;C:\Program Files\CMake\bin
  • Download OpMon here
  • Extract
  • Go to the OpMon folder
  • Copy what you can find in installers/windows in bin/Release
  • Copy the data folder in bin/Release
  • Open CMD in this folder and type :
  • cmake . -G "MinGW Makefiles"
  • mingw32-make