Finalize 1.7.8 release.
[ginac.git] / tools / CMakeLists.txt
1 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../ginac)
2 add_definitions(-DIN_GINAC)
3
4 add_executable(viewgar viewgar.cpp)
5 target_link_libraries(viewgar ginac ${LIBDL_LIBRARIES})
6 install(TARGETS viewgar RUNTIME DESTINATION "${BIN_INSTALL_DIR}")
7
8 if (CMAKE_COMPILER_IS_GNUCC)
9         set (CC gcc)
10         configure_file (
11           "${CMAKE_CURRENT_SOURCE_DIR}/ginac-excompiler.in"
12           "${CMAKE_CURRENT_BINARY_DIR}/ginac-excompiler"
13         )
14
15         install(PROGRAMS ginac-excompiler DESTINATION "${LIBEXECDIR}")
16 endif (CMAKE_COMPILER_IS_GNUCC)