-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sh
executable file
·34 lines (27 loc) · 973 Bytes
/
build.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
#!/bin/bash
set -e
export CXXFLAGS=-m32
mkdir -p build_Linux_DEBUG_x86
cd build_Linux_DEBUG_x86
cmake -DCMAKE_BUILD_TYPE=Debug -DARCH=x86 -Dgtest_force_shared_crt=TRUE -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON ..
cmake --build . --config Debug
cd ..
export CXXFLAGS=-m32
mkdir -p build_Linux_RELEASE_x86
cd build_Linux_RELEASE_x86
cmake -DCMAKE_BUILD_TYPE=Release -DARCH=x86 -Dgtest_force_shared_crt=TRUE -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON ..
cmake --build . --config Release
cd ..
export CXXFLAGS=-m64
mkdir -p build_Linux_DEBUG_x64
cd build_Linux_DEBUG_x64
cmake -DCMAKE_BUILD_TYPE=Debug -DARCH=x64 -Dgtest_force_shared_crt=TRUE -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON ..
cmake --build . --config Debug
cd ..
export CXXFLAGS=-m64
mkdir -p build_Linux_RELEASE_x64
cd build_Linux_RELEASE_x64
cmake -DCMAKE_BUILD_TYPE=Release -DARCH=x64 -Dgtest_force_shared_crt=TRUE -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON ..
cmake --build . --config Release
cd ..
bin.tmp/Linux/Debug/x64/stringozzi.test