support for mpfi and rs

This commit is contained in:
Eric Berberich 2010-03-05 10:20:07 +00:00
parent 6b13dd3047
commit 02a4b51f51
1 changed files with 50 additions and 2 deletions

View File

@ -28,6 +28,8 @@
create_cmake_script_with_options() create_cmake_script_with_options()
{ {
mpfi='n'
rs='n'
qt3='n' qt3='n'
qt4='n' qt4='n'
@ -161,10 +163,18 @@ EOF
OLDIFS="$IFS" OLDIFS="$IFS"
IFS=':' IFS=':'
for cgal_component in $CGAL_COMPONENTS; do for cgal_component in $CGAL_COMPONENTS; do
if [ "$cgal_component" = "Qt3" ]; then COMPONENT=`echo $cgal_component | tr '[:upper:]' '[:lower:]'`
if [ "$COMPONENT" = "mpfi" ]; then
mpfi='y'
fi
if [ "$COMPONENT" = "rs" ]; then
rs='y'
fi
if [ "$COMPONENT" = "qt3" ]; then
qt3='y' qt3='y'
fi fi
if [ "$cgal_component" = "Qt4" ]; then if [ "$COMPONENT" = "qt4" ]; then
qt4='y' qt4='y'
fi fi
done done
@ -271,6 +281,44 @@ include( ${CGAL_USE_FILE} )
EOF EOF
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# mpfi
if [ "$mpfi" = "y" ]; then
#vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
cat << 'EOF'
find_package( MPFI )
if ( MPFI_FOUND )
include( ${MPFI_USE_FILE} )
else()
message(STATUS "This project requires the MPFI library, and will not be compiled.")
return()
endif( MPFI_FOUND )
EOF
#---------------------------------------------------------------------------
fi
# rs
if [ "$rs" = "y" ]; then
#vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
cat << 'EOF'
find_package( RS )
if ( RS_FOUND )
include( ${RS_USE_FILE} )
else()
message(STATUS "This project requires the RS library, and will not be compiled.")
return()
endif( RS_FOUND )
EOF
#---------------------------------------------------------------------------
fi
# Qt3 or Qt4 # Qt3 or Qt4
if [ "$qt3" = "y" ]; then if [ "$qt3" = "y" ]; then