@@ -59,7 +59,11 @@ In addition to the below dependencies, you will also need CMake 3.16 or newer, h
59
59
<summary >DEB-based distros</summary >
60
60
61
61
```
62
- g++ cmake ninja-build curl libsdl2-dev libpng-dev libjpeg-dev libgl1-mesa-dev libglew-dev libopenal-dev libmad0-dev uuid-dev catch2
62
+ g++ cmake ninja-build curl libsdl2-dev libpng-dev libjpeg-dev libgl1-mesa-dev libglew-dev libopenal-dev libmad0-dev uuid-dev
63
+ ```
64
+ Additionally, if you want to build unit tests:
65
+ ```
66
+ catch2
63
67
```
64
68
65
69
</details >
@@ -68,7 +72,11 @@ g++ cmake ninja-build curl libsdl2-dev libpng-dev libjpeg-dev libgl1-mesa-dev li
68
72
<summary >RPM-based distros</summary >
69
73
70
74
```
71
- gcc-c++ cmake ninja-build SDL2-devel libpng-devel libjpeg-turbo-devel mesa-libGL-devel glew-devel openal-soft-devel libmad-devel libuuid-devel catch2-devel
75
+ gcc-c++ cmake ninja-build SDL2-devel libpng-devel libjpeg-turbo-devel mesa-libGL-devel glew-devel openal-soft-devel libmad-devel libuuid-devel
76
+ ```
77
+ Additionally, if you want to build unit tests:
78
+ ```
79
+ catch2-devel
72
80
```
73
81
74
82
</details >
@@ -82,11 +90,12 @@ gcc-c++ cmake ninja-build SDL2-devel libpng-devel libjpeg-turbo-devel mesa-libGL
82
90
Here's a summary of every command you will need for development:
83
91
84
92
``` bash
85
- $ cmake --preset < preset> # configure project (only needs to be done once)
86
- $ cmake --build --preset < preset> -debug # build Endless Sky (as well as any tests)
87
- $ ctest --preset < preset> -test # run the unit tests
88
- $ ctest --preset < preset> -benchmark # run the benchmarks
89
- $ ctest --preset < preset> -integration # run the integration tests (Linux only)
93
+ $ cmake --preset < preset> # configure project (only needs to be done once)
94
+ $ cmake --build --preset < preset> -debug # build Endless Sky and all tests
95
+ $ cmake --build --preset < preset> -debug --target EndlessSky # build only the game
96
+ $ ctest --preset < preset> -test # run the unit tests
97
+ $ ctest --preset < preset> -benchmark # run the benchmarks
98
+ $ ctest --preset < preset> -integration # run the integration tests (Linux only)
90
99
```
91
100
92
101
The executable will be located in ` build/<preset>/Debug/ ` . If you'd like to debug a specific integration test (on any OS), you can do so as follows:
0 commit comments