generated from eheperson/rpp-p
-
Notifications
You must be signed in to change notification settings - Fork 0
/
notebook
122 lines (95 loc) · 2.86 KB
/
notebook
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
cd ./external/sources
git submodule add [email protected]:Dav1dde/glad.git
git submodule add [email protected]:assimp/assimp.git
git submodule add [email protected]:glfw/glfw.git
git submodule add [email protected]:g-truc/glm.git
git submodule add [email protected]:libsdl-org/SDL.git
cd ./external/sources
# building SDL2 library
cd ./SDL # corresponds to ./external/sources/SDL
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=../../sdl \
-S . \
-B ../../builds/sdl_build
cd ../../ #corresponds to ./external dir
# option 1
cmake --build ./builds/sdl_build -v
cmake --install ./builds/sdl_build --prefix sdl
# option 2
cd ./builds/sdl_build
make -j7
make install
# building SDL_Image library
cd ./SDL_Image # corresponds to ./external/sources/SDL_Image
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=../../sdl_image \
-DCMAKE_PREFIX_PATH=../../sdl \
-S . \
-B ../../builds/sdl_image_build
cd ../../ #corresponds to ./external dir
# option 1
cmake --build ./builds/sdl_image_build -v
cmake --install ./builds/sdl_image_build --prefix sdl_image
# option 2
cd ./builds/sdl_image_build
make -j7
make install
# building GLAD library
cd ./glad # corresponds to ./external/sources/glad
cmake -DCMAKE_BUILD_TYPE=Release \
-DGLAD_INSTALL=ON \
-DCMAKE_PREFIX_PATH=../../glad \
-S . \
-B ../../builds/glad_build
cd ../../ #corresponds to ./external dir
# option 1
cmake --build ./builds/glad_build -v
cmake --install ./builds/glad_build --prefix glad
# option 2
cd ./builds/sdl_image_build
make -j7
make install
# --------------------------------------------------------------------------------------------
# --- GLM
cd ./external/sources/glm
#
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=../../glm \
-S . \
-B ../glm_build
#
cd ../glm_build
make -j7
make install
# --------------------------------------------------------------------------------------------
# --- GLFW
cd ./external/sources/glfw
#
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=../../glfw \
-S . \
-B ../glfw_build
#
cd ../glfw_build
make -j7
make install
# --------------------------------------------------------------------------------------------
# --- ASSIMP
cd ./external/sources/assimp
#
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=../../assimp \
-S . \
-B ../assimp_build
#
cd ../assimp_build
make -j7
make install
To remove a submodule you need to:
Delete the relevant section from the .gitmodules file.
Stage the .gitmodules changes git add .gitmodules
Delete the relevant section from .git/config.
Run git rm --cached path_to_submodule (no trailing slash).
Run rm -rf .git/modules/path_to_submodule (no trailing slash).
Commit git commit -m "Removed submodule "
Delete the now untracked submodule files rm -rf path_to_submodule