src/Makefile.am: Build the "sn-evolution" application if libpopulation is available.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 10 May 2010 10:23:18 +0000 (12:23 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 10 May 2010 10:23:18 +0000 (12:23 +0200)
src/Makefile.am

index e65490d..773573a 100644 (file)
@@ -41,4 +41,11 @@ sn_show_LDADD = libsortnetwork.la
 sn_tex_SOURCES = sn-tex.c
 sn_tex_LDADD = libsortnetwork.la
 
-
+if BUILD_WITH_LIBPOPULATION
+bin_PROGRAMS += sn-evolution
+
+sn_evolution_SOURCES = sn-evolution.c
+sn_evolution_CPPFLAGS = $(AM_CPPFLAGS) $(LIBPOPULATION_CPPFLAGS)
+sn_evolution_LDFLAGS = $(AM_LDFLAGS) $(LIBPOPULATION_LDFLAGS)
+sn_evolution_LDADD = libsortnetwork.la $(LIBPOPULATION_LIBS)
+endif