Skip to content
Snippets Groups Projects
Commit 91845f1e authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

link libreadline already in readplus, not later in libfrida

parent 62183de9
No related branches found
No related tags found
No related merge requests found
# - Try to find READLINE # Try to find READLINE
# Once done this will define # Once done this will define
# #
# READLINE_FOUND - system has READLINE # READLINE_FOUND - system has READLINE
# READLINE_INCLUDE_DIR - the READLINE include directory # READLINE_INCLUDE_DIR - the READLINE include directory
# READLINE_LIBRARIES - Link these to use READLINE # READLINE_LIBRARIES - Link these to use READLINE
# READLINE_NEED_PREFIX - this is set if the functions are prefixed with BZ2_ # READLINE_NEED_PREFIX - this is set if the functions are prefixed with BZ2_
#=============================================================================
# Copyright 2006-2009 Kitware, Inc. find_path(READLINE_INCLUDE_DIR readline/readline.h)
# Copyright 2006 Alexander Neundorf <neundorf@kde.org> find_library(READLINE_LIBRARIES NAMES readline history READLINE)
#
# Distributed under the OSI-approved BSD License (the "License"); # handle the QUIETLY and REQUIRED arguments and set READLINE_FOUND
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
find_path(READLINE_INCLUDE_DIR readline/readline.h )
find_library(READLINE_LIBRARIES NAMES readline history READLINE )
# handle the QUIETLY and REQUIRED arguments and set READLINE_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(READLINE DEFAULT_MSG READLINE_LIBRARIES READLINE_INCLUDE_DIR) find_package_handle_standard_args(READLINE DEFAULT_MSG READLINE_LIBRARIES READLINE_INCLUDE_DIR)
IF (READLINE_FOUND) if(READLINE_FOUND)
include(CheckLibraryExists) include(CheckLibraryExists)
CHECK_LIBRARY_EXISTS(${READLINE_LIBRARIES} rl_initialize "" READLINE_NEED_PREFIX) check_library_exists(${READLINE_LIBRARIES} rl_initialize "" READLINE_NEED_PREFIX)
ENDIF (READLINE_FOUND) endif(READLINE_FOUND)
message(STATUS "READLINE_INCLUDE_DIR=${READLINE_INCLUDE_DIR}")
message(STATUS "READLINE_LIBRARIES=${READLINE_LIBRARIES}")
mark_as_advanced(READLINE_INCLUDE_DIR READLINE_LIBRARIES) mark_as_advanced(READLINE_INCLUDE_DIR READLINE_LIBRARIES)
\ No newline at end of file
...@@ -95,7 +95,6 @@ ${LIBKWW_LIBS} ...@@ -95,7 +95,6 @@ ${LIBKWW_LIBS}
${LIBCERF_LIBS} ${LIBCERF_LIBS}
${YAMLCPP_LIBRARY} ${YAMLCPP_LIBRARY}
${LIBLMFIT_LIBS} ${LIBLMFIT_LIBS}
${READLINE_LIBRARIES}
) )
install(TARGETS libfrida DESTINATION ${CMAKE_INSTALL_PREFIX}/lib) install(TARGETS libfrida DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
# frida: readplus/CMakeLists.txt # frida: readplus/CMakeLists.txt
include_directories(${Frida_SOURCE_DIR}/readplus ${CMAKE_CURRENT_BINARY_DIR}) include_directories(${Frida_SOURCE_DIR}/readplus READLINE_INCLUDE_DIR)
set(src_files set(src_files
ask.cpp ask.cpp
...@@ -20,7 +20,6 @@ ${src_files} ...@@ -20,7 +20,6 @@ ${src_files}
set_target_properties(libreadplus PROPERTIES OUTPUT_NAME readplus) set_target_properties(libreadplus PROPERTIES OUTPUT_NAME readplus)
target_link_libraries(libreadplus target_link_libraries(libreadplus ${READLINE_LIBRARIES})
)
install(TARGETS libreadplus DESTINATION ${CMAKE_INSTALL_PREFIX}/lib) install(TARGETS libreadplus DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment