CMakeLists.txt are now auto-generated by create_internal_release

This commit is contained in:
Fernando Cacciola 2008-05-05 15:09:28 +00:00
parent f93437ca22
commit 1d136115e1
2 changed files with 21 additions and 10 deletions

View File

@ -412,8 +412,10 @@ sub make_testscripts()
# of the current directory if none already exists # of the current directory if none already exists
#---------------------------------------------------------------# #---------------------------------------------------------------#
sub generate_cmake_scripts() sub generate_cmake_scripts
{ {
my $is_demo = $_[0];
foreach $DIR (glob("*")) foreach $DIR (glob("*"))
{ {
if ( -d $DIR ) if ( -d $DIR )
@ -423,7 +425,8 @@ sub generate_cmake_scripts()
if ( ! -f 'CMakeLists.txt' ) if ( ! -f 'CMakeLists.txt' )
{ {
$_ = $DIR; $_ = $DIR;
my $options = (/_Demo$/) ? '-q' : '' ;
my $options = /_Demo$/ || $is_demo ? '-q' : '' ;
if ( -f 'cgal_create_cmake_script_options') if ( -f 'cgal_create_cmake_script_options')
{ {
@ -450,7 +453,7 @@ sub generate_cmake_scripts()
} }
} }
sub generate_cgal_test_with_cmake() sub generate_cgal_test_with_cmake
{ {
foreach $DIR (glob("*")) foreach $DIR (glob("*"))
{ {
@ -469,7 +472,7 @@ sub generate_cgal_test_with_cmake()
} }
} }
sub make_testscripts_for_cmake() sub make_testscripts_for_cmake
{ {
my ($DIR, $BASEDIR); my ($DIR, $BASEDIR);
chdir "$RELEASEDIR/$VERSION" or die; chdir "$RELEASEDIR/$VERSION" or die;
@ -480,15 +483,21 @@ sub make_testscripts_for_cmake()
print "Creating test scripts\n"; print "Creating test scripts\n";
generate_cgal_test_with_cmake(); generate_cgal_test_with_cmake();
print "Creating cmake scripts in examples\n"; print "Creating cmake scripts in test\n";
generate_cmake_scripts(); generate_cmake_scripts('');
chdir $BASEDIR; chdir $BASEDIR;
chdir 'examples'; chdir 'examples';
print "Creating cmake scripts in examples\n"; print "Creating cmake scripts in examples\n";
generate_cmake_scripts(); generate_cmake_scripts('');
chdir $BASEDIR;
chdir 'demo';
print "Creating cmake scripts in demo\n";
generate_cmake_scripts('demo');
chdir $BASEDIR; chdir $BASEDIR;
} }
@ -567,3 +576,5 @@ unlock;
} }
main(); main();

View File

@ -52,11 +52,11 @@ create_cmake_script()
if [ -n "$QT" ] ; then if [ -n "$QT" ] ; then
echo 'find_package(REQUIRED)' echo 'find_package(Qt3 REQUIRED)'
echo echo
echo echo
echo 'include( ${CGAL_USE_FILE} )' echo 'include( ${CGAL_USE_FILE} )'
echo 'include(Qt3Macros)' echo 'include( Qt3Macros )'
echo echo
for file in `ls *.C *.cpp 2>/dev/null | sort` ; do for file in `ls *.C *.cpp 2>/dev/null | sort` ; do
@ -97,7 +97,7 @@ create_cmake_script()
echo echo
echo 'include( ${CGAL_USE_FILE} )' echo 'include( ${CGAL_USE_FILE} )'
echo 'include(CreateSingleSourceCGALProgram)' echo 'include( CreateSingleSourceCGALProgram )'
echo echo
if [ -d include ] ; then if [ -d include ] ; then