mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 20:37:50 +08:00
cc00cf05fb
* Add libplist * Add libusbmuxd * Fix typos * Add getopt * Add libimobiledevice * Fix typos * Add libideviceactivation * Add ideviceinstaller * Include utilities * Install usbmuxd * Add readline * Fix readline on 64-bit windows * Add libirecovery * libideviceactivation: include tools * Bump versions to fix build issues * Bump versions * Add idevicerestore * [getopt][getopt-win32] Rename to getopt-win32 and only install on Windows Desktop * [readline][readline-win32] Rename to readline-win32 and only install for Windows Desktop * [vcpkg_from_github][vcpkg_apply_patches] Make PATCHES relative to the current port directory * [vcpkg_install_msbuild][vcpkg_check_linkage] Introduce vcpkg_install_msbuild() and vcpkg_check_linkage(). * [libimobiledevice et al] Use vcpkg_from_github() and vcpkg_install_msbuild() * [readline] Fix static builds
57 lines
995 B
CMake
57 lines
995 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
project(readline C)
|
|
|
|
add_definitions(-DREADLINE_LIBRARY)
|
|
add_definitions(-DHAVE_CONFIG_H)
|
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
|
|
|
if(BUILD_SHARED_LIBS)
|
|
add_definitions(-DBUILD_READLINE_DLL)
|
|
else()
|
|
add_definitions(-DREADLINE_STATIC)
|
|
endif()
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_SOURCE_DIR} # thats where the config.h is located
|
|
)
|
|
|
|
add_library(readline
|
|
readline.c
|
|
funmap.c
|
|
keymaps.c
|
|
vi_mode.c
|
|
parens.c
|
|
rltty.c
|
|
complete.c
|
|
bind.c
|
|
isearch.c
|
|
display.c
|
|
signals.c
|
|
util.c
|
|
kill.c
|
|
undo.c
|
|
macro.c
|
|
input.c
|
|
callback.c
|
|
terminal.c
|
|
xmalloc.c
|
|
history.c
|
|
histsearch.c
|
|
histexpand.c
|
|
histfile.c
|
|
nls.c
|
|
search.c
|
|
shell.c
|
|
savestring.c
|
|
tilde.c
|
|
text.c
|
|
misc.c
|
|
compat.c
|
|
mbutil.c
|
|
support/wcwidth.c)
|
|
|
|
install(TARGETS readline
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib)
|