]> www.ginac.de Git - ginac.git/blob - doc/examples/CMakeLists.txt
Build example programs to avoid breaking them on API changes
[ginac.git] / doc / examples / CMakeLists.txt
1 add_info_file(ginac-examples)
2
3 add_definitions(-DIN_GINAC)
4 include_directories(${CMAKE_SOURCE_DIR}/ginac ${CMAKE_BUILD_DIR}/ginac)
5
6 add_executable(archive1 archive1.cpp)
7 target_link_libraries(archive1 ginac ${LIBDL_LIBRARIES})
8
9 add_executable(compile1 compile1.cpp)
10 target_link_libraries(compile1 ginac ${LIBDL_LIBRARIES})
11
12 # XXX: compile2 example uses the Cuba library (http://www.feynarts.de/cuba)
13 # add_executable(compile2 compile2.cpp)
14 # target_link_libraries(compile2 ginac ${LIBDL_LIBRARIES})
15
16 add_executable(compile3 compile3.cpp)
17 target_link_libraries(compile3 ginac ${LIBDL_LIBRARIES})
18
19 add_executable(mystring mystring.cpp)
20 target_link_libraries(mystring ginac ${LIBDL_LIBRARIES})
21
22 add_executable(derivative derivative.cpp)
23 target_link_libraries(derivative ginac ${LIBDL_LIBRARIES})