1 2 3 4 5 6
#!/bin/sh cmake -E make_directory build cmake -E chdir build cmake -DCMAKE_C_COMPILER=/opt/tools/gcc/4.7.2/rtf/bin/gcc -DCMAKE_CXX_COMPILER=/opt/tools/gcc/4.7.2/rtf/bin/g++ -DCMAKE_BUILD_TYPE=Release .. cmake --build build make -C build install VERBOSE=1