-
Notifications
You must be signed in to change notification settings - Fork 101
/
install_linux_make.sh
29 lines (22 loc) · 1.11 KB
/
install_linux_make.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
echo "This sets up a Debug and Release build for use with linux Makefiles. If you are using another CMake generator (e.g. to build Eclipse project files), don't use this."
echo "======================================================================================="
#cd `pwd`
mkdir Debug && cd Debug
cmake -C ../../FeatureDetection/initial_cache.cmake -D CMAKE_BUILD_TYPE=Debug ../../FeatureDetection/
#if we want more compiler warnings:
#cmake -C ../../FeatureDetection/initial_cache.cmake -D CMAKE_BUILD_TYPE=Debug -D CMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra -Wconversion" ../../FeatureDetection/
cd ..
mkdir Release && cd Release
cmake -C ../../FeatureDetection/initial_cache.cmake -D CMAKE_BUILD_TYPE=Release ../../FeatureDetection/
cd ..
echo "
ALL: build
build: build_release build_debug
build_release:
cd Release && make
build_debug:
cd Debug && make
" > Makefile
echo "======================================================================================="
echo "Directories for Debug and Release builds are now ready."
echo "Run 'make build_debug', 'make build_release' or just 'make' to build both."