X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginsh%2FCMakeLists.txt;h=c350a21ab5a3e328b4b6cd3a298c4afa85c187ed;hp=dda2e00ca265aad718fcd60b35b9c076cecb8eb2;hb=f7884835d397de85e648d1957c058b7d4c0948ba;hpb=bf0d26572edecc37d98aec715e14fbd71a8c0315 diff --git a/ginsh/CMakeLists.txt b/ginsh/CMakeLists.txt index dda2e00c..c350a21a 100644 --- a/ginsh/CMakeLists.txt +++ b/ginsh/CMakeLists.txt @@ -6,10 +6,10 @@ include_directories( add_definitions(-DIN_GINAC) bison_target(ginsh_parser - ginsh_parser.yy + ginsh_parser.ypp ${CMAKE_CURRENT_BINARY_DIR}/ginsh_parser.cpp) flex_target(ginsh_lexer - ginsh_lexer.ll + ginsh_lexer.lpp ${CMAKE_CURRENT_BINARY_DIR}/ginsh_lexer.cpp) add_flex_bison_dependency(ginsh_lexer ginsh_parser) @@ -19,7 +19,7 @@ set(ginsh_SOURCES ) set(ginsh_HEADERS - ginsh_parser.h + ginsh_parser.hpp ginsh.h ginsh_fcn_help.h ginsh_op_help.h @@ -28,8 +28,8 @@ set(ginsh_HEADERS set(ginsh_DISTRIB ${ginsh_SOURCES} ${ginsh_HEADERS} - ginsh_parser.yy - ginsh_lexer.ll + ginsh_parser.ypp + ginsh_lexer.lpp ginsh.1.in ginsh_fcn_help.py ginsh_op_help.py @@ -51,8 +51,7 @@ add_custom_command( WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) add_custom_command( - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ginsh_parser.h - COMMAND ${CMAKE_COMMAND} -E copy ginsh_parser.hpp ginsh_parser.h + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ginsh_parser.hpp DEPENDS ${BISON_ginsh_parser_OUTPUTS} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) @@ -62,5 +61,5 @@ if (READLINE_FOUND) endif() add_executable(ginsh ${ginsh_SOURCES} ${ginsh_HEADERS}) -target_link_libraries(ginsh ginac ${ginsh_extra_libs}) +target_link_libraries(ginsh ginac ${ginsh_extra_libs} ${LIBDL_LIBRARIES}) install(TARGETS ginsh RUNTIME DESTINATION "${BIN_INSTALL_DIR}")