diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-23 16:49:49 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-23 16:52:00 +0200 |
commit | 426392f71d5f45aad8c57969643fd6c365ce2362 (patch) | |
tree | 3e5b6ddfc395e26f1a931f9a97516ede9b7c68d3 /sinksh/CMakeLists.txt | |
parent | 1ec240e3df3e9c8571c0df174b9f239b451dbf3a (diff) | |
download | sink-426392f71d5f45aad8c57969643fd6c365ce2362.tar.gz sink-426392f71d5f45aad8c57969643fd6c365ce2362.zip |
Replaced readline with cpp-linenoise
... a single header readline replacement that works on all linux, osx
and windows (or so they claim). Besides cleaning up the code
considerably, it should help us build sinksh on windows where readline
is not really (there are some ancient broken readline ports) available.
cpp-readline comes from here: https://github.com/yhirose/cpp-linenoise
Diffstat (limited to 'sinksh/CMakeLists.txt')
-rw-r--r-- | sinksh/CMakeLists.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sinksh/CMakeLists.txt b/sinksh/CMakeLists.txt index f55f424..cfff36c 100644 --- a/sinksh/CMakeLists.txt +++ b/sinksh/CMakeLists.txt | |||
@@ -1,7 +1,5 @@ | |||
1 | project(sinksh) | 1 | project(sinksh) |
2 | 2 | ||
3 | find_package(Readline 5.0 REQUIRED) | ||
4 | |||
5 | set(sink_cli_SRCS | 3 | set(sink_cli_SRCS |
6 | main.cpp | 4 | main.cpp |
7 | syntaxtree.cpp | 5 | syntaxtree.cpp |
@@ -27,9 +25,9 @@ set(sink_cli_SRCS | |||
27 | state.cpp | 25 | state.cpp |
28 | utils.cpp) | 26 | utils.cpp) |
29 | 27 | ||
30 | include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${Readline_INCLUDE_DIR}) | 28 | include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) |
31 | 29 | ||
32 | add_executable(${PROJECT_NAME} ${sink_cli_SRCS}) | 30 | add_executable(${PROJECT_NAME} ${sink_cli_SRCS}) |
33 | target_link_libraries(${PROJECT_NAME} Qt5::Core ${Readline_LIBRARY} sink ${XAPIAN_LIBRARIES}) | 31 | target_link_libraries(${PROJECT_NAME} Qt5::Core sink ${XAPIAN_LIBRARIES}) |
34 | install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) | 32 | install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) |
35 | 33 | ||