Created
March 4, 2016 05:27
-
-
Save sloriot/663c40d41d539f0d3cdd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SRC=$PWD | |
INSTALL=/tmp/cgal/install | |
TEST=/tmp/cgal/test | |
rm -r build | |
mkdir -p build | |
cd build | |
Qt5_DIR= | |
cmake .. \ | |
-DCMAKE_INSTALL_PREFIX=$INSTALL -DCMAKE_BUILD_TYPE=Release \ | |
-DWITH_GMPXX=ON -DWITH_demos=OFF -DWITH_examples=OFF \ | |
-DCGAL_ENABLE_PRECONFIG=OFF -DBUILD_SHARED_LIBS=FALSE \ | |
-DCGAL_INSTALL_LIB_DIR=lib/x86_64-linux-gnu \ | |
-DCGAL_INSTALL_CMAKE_DIR=lib/x86_64-linux-gnu/cmake/CGAL | |
make | |
rm -r $INSTALL | |
make install | |
cd $INSTALL | |
rm -r include/CGAL/Qt lib/x86_64-linux-gnu/libCGAL_Qt5.a | |
mkdir -p $TEST | |
cd $TEST | |
rm -r examples | |
cp -a $SRC/examples . | |
cd examples/Surface_mesh | |
CGAL_DIR=$INSTALL cmake . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment