Connect Four build with C++ using CMake
Required packages:
- g++
- libgtk-3-dev
- cmake
- pkg-config
g++ *.cpp -o build -I`pkg-config --cflags --libs gtk+-3.0` && ./build
cmake . && make && ./Main
cd test
cmake . && make && ./runTests
Generate unit test coverage report after running the tests.
lcov --directory . --capture --output-file CMakeFiles/lcov.info
lcov -r CMakeFiles/lcov.info /usr/include/\* --output-file CMakeFiles/lcov.info
lcov -r CMakeFiles/lcov.info *googletest* --output-file CMakeFiles/lcov.info
genhtml --output-directory coverage-report CMakeFiles/lcov.info
- Install MSYS2
- Update with
pacman -Syuu - Install Git, nano, etc.
pacman -S git nano cmake - Install GTK3
pacman -S mingw-w64-x86_64-gtk3 - Clone Git repository & unpack
- Enter directory
cd /c/path/to/unpacked/files/connect-four/ - Run Cmake
cmake . -G "MSYS Makefiles" - Build & Run
make && ConnectFour.exe
