# HG changeset patch # User ladanyi # Date 1115307283 0 # Node ID 17c80cb3754b502053584ea44819e17b6619447a # Parent c479984e459d808d170c02a6359e097492f3052b added directory and check for the GUI diff -r c479984e459d -r 17c80cb3754b config/misc.m4 --- a/config/misc.m4 Thu May 05 11:06:58 2005 +0000 +++ b/config/misc.m4 Thu May 05 15:34:43 2005 +0000 @@ -26,3 +26,22 @@ AC_SUBST(DOXYGEN_INTERNAL_DOCS) AM_CONDITIONAL([WANT_DOCS], [test x"$enable_docs" != x"no"]) ]) + +AC_DEFUN([LX_ENABLE_GUI], +[ + AC_ARG_ENABLE([gui], +AS_HELP_STRING([--enable-gui], [build the GUI]) +AS_HELP_STRING([--disable-gui], [do not build the GUI @<:@default@:>@]), + [], [enable_gui=no]) + + AC_MSG_CHECKING([whether to build the GUI]) + if test x"$enable_gui" != x"no"; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi + if test x"$enable_gui" != x"no"; then + PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0]) + fi + AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"]) +]) diff -r c479984e459d -r 17c80cb3754b configure.ac --- a/configure.ac Thu May 05 11:06:58 2005 +0000 +++ b/configure.ac Thu May 05 15:34:43 2005 +0000 @@ -30,6 +30,7 @@ LX_CHECK_CPLEX LX_ENABLE_DOCS +LX_ENABLE_GUI dnl Checks for header files. AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h) @@ -56,6 +57,8 @@ src/benchmark/Makefile src/demo/Makefile src/test/Makefile +src/gui/Makefile +src/gui/src/Makefile ]) AC_OUTPUT @@ -71,6 +74,8 @@ echo GLPK support.................. : $lx_glpk_found echo CPLEX support................. : $lx_cplex_found echo +echo build GUI..................... : $enable_gui +echo echo The packace will be installed in echo -n ' ' echo $prefix. diff -r c479984e459d -r 17c80cb3754b src/Makefile.am --- a/src/Makefile.am Thu May 05 11:06:58 2005 +0000 +++ b/src/Makefile.am Thu May 05 15:34:43 2005 +0000 @@ -1,1 +1,4 @@ -SUBDIRS = lemon benchmark demo test +if WANT_GUI + MAYBE_GUI = gui +endif +SUBDIRS = lemon benchmark demo test $(MAYBE_GUI) diff -r c479984e459d -r 17c80cb3754b src/gui/Makefile.am --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/gui/Makefile.am Thu May 05 15:34:43 2005 +0000 @@ -0,0 +1,1 @@ +SUBDIRS = src diff -r c479984e459d -r 17c80cb3754b src/gui/src/Makefile.am --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/gui/src/Makefile.am Thu May 05 15:34:43 2005 +0000 @@ -0,0 +1,6 @@ +AM_CPPFLAGS = -I$(top_srcdir)/src +LDADD = $(top_builddir)/src/lemon/libemon.la + +bin_PROGRAMS = gui + +gui_SOURCES = main.cc diff -r c479984e459d -r 17c80cb3754b src/gui/src/main.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/gui/src/main.cc Thu May 05 15:34:43 2005 +0000 @@ -0,0 +1,10 @@ +#ifdef HAVE_CONFIG_H +#include +#endif + +#include + +int main() +{ + std::cout << "Hello World!" << std::endl; +}