add_info_file(ginac-examples)
+
+add_definitions(-DIN_GINAC)
+include_directories(${CMAKE_SOURCE_DIR}/ginac ${CMAKE_BUILD_DIR}/ginac)
+
+add_executable(archive1 archive1.cpp)
+target_link_libraries(archive1 ginac ${LIBDL_LIBRARIES})
+
+add_executable(compile1 compile1.cpp)
+target_link_libraries(compile1 ginac ${LIBDL_LIBRARIES})
+
+# XXX: compile2 example uses the Cuba library (http://www.feynarts.de/cuba)
+# add_executable(compile2 compile2.cpp)
+# target_link_libraries(compile2 ginac ${LIBDL_LIBRARIES})
+
+add_executable(compile3 compile3.cpp)
+target_link_libraries(compile3 ginac ${LIBDL_LIBRARIES})
+
+add_executable(mystring mystring.cpp)
+target_link_libraries(mystring ginac ${LIBDL_LIBRARIES})
+
+add_executable(derivative derivative.cpp)
+target_link_libraries(derivative ginac ${LIBDL_LIBRARIES})
CLEANFILES = $(TXT) $(HTML)
EXTRA_DIST = $(EXFILES) CMakeLists.txt
+
+AM_CPPFLAGS = -I$(srcdir)/../../ginac -I../../ginac -DIN_GINAC
+
+noinst_PROGRAMS = archive1 \
+ compile1 \
+ compile3 \
+ mystring \
+ derivative
+
+archive1_SOURCES = archive1.cpp
+archive1_LDADD = ../../ginac/libginac.la
+
+compile1_SOURCES = compile1.cpp
+compile1_LDADD = ../../ginac/libginac.la
+
+# compile2 example uses the Cuba library: (http://www.feynarts.de)
+# compile2_SOURCES = compile2.cpp
+# compile2_LDADD = ../../ginac/libginac.la
+
+compile3_SOURCES = compile3.cpp
+compile3_LDADD = ../../ginac/libginac.la
+
+mystring_SOURCES = mystring.cpp
+mystring_LDADD = ../../ginac/libginac.la
+
+derivative_SOURCES = derivative.cpp
+derivative_LDADD = ../../ginac/libginac.la