-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
44 lines (28 loc) · 1.15 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
A Rubik cube simulator with a terminal UI
# Requirements
* NCurses
# Install
* git clone https://github.com/mikkoi/rubik.git
* mkdir build-rubik && cd build-rubik
* cmake ../rubik -DCMAKE_BUILD_TYPE=Release -D BUILD_TESTING=False
* If your NCurses library is not installed in a default directory, add parameter:
* -D CURSES_INCLUDE_PATH=<ncurses_installation>
* make
* make install
# Contribute
If you want to contribute code, you will need to compile the project
in Debug mode and run tests. Here is how:
## Check Framework
* You need C test framework Check. Install via system tools, e.g.
`sudo apt-get install check` or `yum install check`.
* Or direct from GitHub: https://github.com/libcheck/check/releases
## Rubik
* git clone https://github.com/mikkoi/rubik.git
* mkdir build-Debug-rubik && cd build-Debug-rubik
* cmake -D CMAKE_BUILD_TYPE=Debug -D BUILD_TESTING=True -D Check_ROOT=<check_installation> -D CMAKE_INSTALL_PREFIX=../install-Debug-rubik ../rubik
* If your NCurses library is not installed in a default directory, add parameter:
* -D CURSES_INCLUDE_PATH=<ncurses_installation>
* make
* ctest
* make install
* ../install-Debug/rubik/bin/rubik