mirror of https://github.com/CGAL/cgal
remove qt4 traces in scripts
This commit is contained in:
parent
107c4350d0
commit
24390666eb
|
|
@ -29,12 +29,10 @@
|
||||||
#BLAS
|
#BLAS
|
||||||
#LAPACK
|
#LAPACK
|
||||||
#OPENNL
|
#OPENNL
|
||||||
#QGLViewer (or implied by Qt4?)
|
|
||||||
#ESBTL
|
#ESBTL
|
||||||
#NTL
|
#NTL
|
||||||
|
|
||||||
#Core (implies GMP+GMPXX)
|
#Core (implies GMP+GMPXX)
|
||||||
#Qt4 (implies QT4)
|
|
||||||
#ImageIO
|
#ImageIO
|
||||||
|
|
||||||
#not (yet) supported
|
#not (yet) supported
|
||||||
|
|
@ -114,11 +112,10 @@ fi
|
||||||
if [ ! -z "$CGAL_COMPONENTS" ]; then
|
if [ ! -z "$CGAL_COMPONENTS" ]; then
|
||||||
# ensure capitalization
|
# ensure capitalization
|
||||||
|
|
||||||
# CGAL: Core, Qt4, PDB, ImageIO
|
# CGAL: Core, PDB, ImageIO
|
||||||
CGAL_COMPONENTS=${CGAL_COMPONENTS//[c|C][o|O][r|R][e|E]/Core}
|
CGAL_COMPONENTS=${CGAL_COMPONENTS//[c|C][o|O][r|R][e|E]/Core}
|
||||||
CGAL_COMPONENTS=${CGAL_COMPONENTS//[q|Q][t|T]4/Qt4}
|
|
||||||
CGAL_COMPONENTS=${CGAL_COMPONENTS//[i|I][m|M][a|A][g|G][e|E][i|I][o|O]/ImageIO}
|
CGAL_COMPONENTS=${CGAL_COMPONENTS//[i|I][m|M][a|A][g|G][e|E][i|I][o|O]/ImageIO}
|
||||||
|
|
||||||
# external libs
|
# external libs
|
||||||
|
|
||||||
CGAL_COMPONENTS=${CGAL_COMPONENTS//[g|G][m|M][p|P]/GMP}
|
CGAL_COMPONENTS=${CGAL_COMPONENTS//[g|G][m|M][p|P]/GMP}
|
||||||
|
|
@ -153,11 +150,6 @@ fi
|
||||||
for cgal_component in $CGAL_COMPONENTS; do
|
for cgal_component in $CGAL_COMPONENTS; do
|
||||||
COMPONENT=`echo $cgal_component | tr '[:upper:]' '[:lower:]'`
|
COMPONENT=`echo $cgal_component | tr '[:upper:]' '[:lower:]'`
|
||||||
|
|
||||||
# for qtmoc
|
|
||||||
if [ "$COMPONENT" = "qt4" ]; then
|
|
||||||
qt4='y'
|
|
||||||
fi
|
|
||||||
|
|
||||||
done
|
done
|
||||||
IFS=$OLDIFS
|
IFS=$OLDIFS
|
||||||
|
|
||||||
|
|
@ -241,31 +233,6 @@ EOF
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Qt4
|
|
||||||
if [ "$qt4" = "y" ]; then
|
|
||||||
|
|
||||||
#vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
|
|
||||||
cat << 'EOF'
|
|
||||||
|
|
||||||
# Qt4
|
|
||||||
set( QT_USE_QTXML true )
|
|
||||||
set( QT_USE_QTMAIN true )
|
|
||||||
set( QT_USE_QTSCRIPT true )
|
|
||||||
set( QT_USE_QTOPENGL true )
|
|
||||||
|
|
||||||
find_package(Qt4)
|
|
||||||
|
|
||||||
if ( NOT QT_FOUND )
|
|
||||||
|
|
||||||
message(STATUS "This project requires the Qt4 library, and will not be compiled.")
|
|
||||||
return()
|
|
||||||
|
|
||||||
endif()
|
|
||||||
EOF
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
|
|
||||||
fi #qt4
|
|
||||||
|
|
||||||
if [ ! -z "$BOOST_COMPONENTS" ]; then
|
if [ ! -z "$BOOST_COMPONENTS" ]; then
|
||||||
#vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
|
#vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
|
||||||
cat << 'EOF'
|
cat << 'EOF'
|
||||||
|
|
@ -308,22 +275,6 @@ EOF
|
||||||
# add a new line
|
# add a new line
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# Qt4
|
|
||||||
if [ "$qt4" = "y" ]; then
|
|
||||||
#vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
|
|
||||||
cat << 'EOF'
|
|
||||||
|
|
||||||
if ( CGAL_Qt4_FOUND AND QT_FOUND )
|
|
||||||
|
|
||||||
include( ${QT_USE_FILE} )
|
|
||||||
include_directories( ${QT_INCLUDE_DIR} )
|
|
||||||
|
|
||||||
endif()
|
|
||||||
|
|
||||||
EOF
|
|
||||||
#-----------------------------------------------------------------------
|
|
||||||
fi # qt4
|
|
||||||
|
|
||||||
for file in `ls *.cc *.cp *.cxx *.cpp *.CPP *.c++ *.C 2> /dev/null | sort` ; do
|
for file in `ls *.cc *.cp *.cxx *.cpp *.CPP *.c++ *.C 2> /dev/null | sort` ; do
|
||||||
# Create an executable for each cpp that contains a function "main()"
|
# Create an executable for each cpp that contains a function "main()"
|
||||||
BASE=`basename $file .cc`
|
BASE=`basename $file .cc`
|
||||||
|
|
@ -335,12 +286,8 @@ EOF
|
||||||
BASE=`basename $BASE .C`
|
BASE=`basename $BASE .C`
|
||||||
egrep '\bmain[ \t]*\(' $file >/dev/null 2>&1
|
egrep '\bmain[ \t]*\(' $file >/dev/null 2>&1
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
if [ "$qt4" = "y" ]; then
|
echo "create_single_source_cgal_program( \"$file\" )"
|
||||||
echo "create_single_source_cgal_program_qt4( \"$file\" )"
|
if [ -n "$ENABLE_CTEST" ]; then
|
||||||
else
|
|
||||||
echo "create_single_source_cgal_program( \"$file\" )"
|
|
||||||
fi
|
|
||||||
if [ -n "$ENABLE_CTEST" ]; then
|
|
||||||
if [ -f "$BASE.cin" ] ; then
|
if [ -f "$BASE.cin" ] ; then
|
||||||
CIN=" < $BASE.cin"
|
CIN=" < $BASE.cin"
|
||||||
else
|
else
|
||||||
|
|
@ -384,73 +331,6 @@ EOF
|
||||||
all="$all $file"
|
all="$all $file"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Qt4
|
|
||||||
if [ "$qt4" = "y" ]; then
|
|
||||||
#vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
|
|
||||||
cat << 'EOF'
|
|
||||||
|
|
||||||
if ( CGAL_Qt4_FOUND AND QT_FOUND )
|
|
||||||
|
|
||||||
include( ${QT_USE_FILE} )
|
|
||||||
include_directories( ${QT_INCLUDE_DIR} )
|
|
||||||
|
|
||||||
EOF
|
|
||||||
#-----------------------------------------------------------------------
|
|
||||||
|
|
||||||
echo " # UI files (Qt Designer files)"
|
|
||||||
for file in `ls *.ui 2> /dev/null | sort`; do
|
|
||||||
echo " qt4_wrap_ui( DT_UI_FILES $file )"
|
|
||||||
done
|
|
||||||
echo
|
|
||||||
echo " # qrc files (resources files, that contain icons, at least)"
|
|
||||||
for file in `ls *.qrc 2> /dev/null | sort`; do
|
|
||||||
echo " qt4_add_resources ( DT_RESOURCE_FILES ./$file )"
|
|
||||||
done
|
|
||||||
echo
|
|
||||||
MOC_FILES=""
|
|
||||||
echo " # use the Qt MOC preprocessor on classes that derives from QObject"
|
|
||||||
for file in `ls include/*.h 2> /dev/null | sort`; do
|
|
||||||
BASE=`basename $file .h`
|
|
||||||
egrep 'Q_OBJECT' $file >/dev/null 2>&1
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo " qt4_generate_moc( include/${BASE}.h ${BASE}.moc )"
|
|
||||||
MOC_FILES="${BASE}.moc $MOC_FILES"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
for file in `ls *.h 2> /dev/null | sort`; do
|
|
||||||
BASE=`basename $file .h`
|
|
||||||
egrep 'Q_OBJECT' $file >/dev/null 2>&1
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo " qt4_generate_moc( ${BASE}.h ${BASE}.moc )"
|
|
||||||
MOC_FILES="${BASE}.moc $MOC_FILES"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
for file in `ls *.cc *.cp *.cxx *.cpp *.CPP *.c++ *.C 2> /dev/null | sort` ; do
|
|
||||||
BASE=`basename $file .cc`
|
|
||||||
BASE=`basename $BASE .cp`
|
|
||||||
BASE=`basename $BASE .cxx`
|
|
||||||
BASE=`basename $BASE .cpp`
|
|
||||||
BASE=`basename $BASE .CPP`
|
|
||||||
BASE=`basename $BASE .c++`
|
|
||||||
BASE=`basename $BASE .C`
|
|
||||||
egrep 'Q_OBJECT' $file >/dev/null 2>&1
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo " qt4_generate_moc( ${BASE}.cpp ${BASE}.moc )"
|
|
||||||
MOC_FILES="${BASE}.moc $MOC_FILES"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
#vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
|
|
||||||
cat << 'EOF'
|
|
||||||
|
|
||||||
endif()
|
|
||||||
EOF
|
|
||||||
#-----------------------------------------------------------------------
|
|
||||||
|
|
||||||
all="${all} ${MOC_FILES} \${DT_UI_FILES} \${DT_RESOURCE_FILES}"
|
|
||||||
|
|
||||||
fi # qt4
|
|
||||||
|
|
||||||
# no 'cat' here, as variable substitution required
|
# no 'cat' here, as variable substitution required
|
||||||
echo
|
echo
|
||||||
echo "add_executable( ${target_name} ${all} )"
|
echo "add_executable( ${target_name} ${all} )"
|
||||||
|
|
@ -480,7 +360,7 @@ usage()
|
||||||
echo "Usage: `basename $0` [-s source] [-c cgal-component1:cgal-component2:...] [-b boost-component1:boost-component2:...] [-p] [-o options_file='`pwd`/cgal_cmake_options:$HOME/.cgal_cmake_options_rc'] [-v] [-h]" >&2
|
echo "Usage: `basename $0` [-s source] [-c cgal-component1:cgal-component2:...] [-b boost-component1:boost-component2:...] [-p] [-o options_file='`pwd`/cgal_cmake_options:$HOME/.cgal_cmake_options_rc'] [-v] [-h]" >&2
|
||||||
echo >&2
|
echo >&2
|
||||||
echo " -s source If this parameter is given the script will create one single executable for 'source' with all source files; otherwise it creates one executable for each main'ed source." >&2
|
echo " -s source If this parameter is given the script will create one single executable for 'source' with all source files; otherwise it creates one executable for each main'ed source." >&2
|
||||||
echo " cgal_componentX - must be a valid cgal component, examples are 'Core','ImageIO','Qt4' ('benchmark', 'symbolic')." >&2
|
echo " cgal_componentX - must be a valid cgal component, examples are 'Core','ImageIO' ('benchmark', 'symbolic')." >&2
|
||||||
echo " boost_componentX - must be a valid boost component, like 'filesystem', 'program_options'." >&2
|
echo " boost_componentX - must be a valid boost component, like 'filesystem', 'program_options'." >&2
|
||||||
echo " -o options_file - file with PACKAGE, DIRECTORY, CGAL_COMPONENT, and BOOST_COMPONENT directives" >&2
|
echo " -o options_file - file with PACKAGE, DIRECTORY, CGAL_COMPONENT, and BOOST_COMPONENT directives" >&2
|
||||||
echo " -v the version" >&2
|
echo " -v the version" >&2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue