forked from ketoo/NoahGameFrame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall4cmake.sh
executable file
·48 lines (40 loc) · 907 Bytes
/
install4cmake.sh
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
# make sure cmake is installed
cmake --version
if [ $? -ne 0 ]; then
echo "[ERROR] Please install cmake first."
echo "[ubuntu] apt-get install cmake or [centos] yum install cmake or [mac] brew install cmake"
exit 1
fi
#compile dep libraries
cd ./Dependencies
chmod -R 755 build_dep.sh
./build_dep.sh
cd ../
cd BuildScript/linux/
chmod -R 755 ./BuildNF.CMake.Tools.sh
chmod -R 755 ./BuildNF.Tools.Linux.Debug.sh
./BuildNF.CMake.Tools.sh
./BuildNF.Tools.Linux.Debug.sh
cd ../../
cd _Out/NFDataCfg/Tool/
chmod 755 ./NFFileProcess
chmod 755 ./copy_files.sh
./copy_files.sh
cd ..
cd ..
cd ..
cd BuildScript/linux/
chmod -R 755 ./BuildNF.CMake.Debug.sh
chmod -R 755 ./BuildNF.CMake.Release.sh
./BuildNF.CMake.Debug.sh
./BuildNF.CMake.Release.sh
cd ../../
cd _Out/
chmod 777 *.sh
cd Tester/
chmod 777 *.sh
cd ../../
# generate makefile
#chmod -R 755 Build4Makefile.sh
#./Build4Makefile.sh
#pwd