# # expect/CMakeLists.txt -- # cmake_minimum_required(VERSION 3.1) project(EXPECT C) set(CMAKE_C_STANDARD 99) set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_C_EXTENSIONS OFF) if(CMAKE_C_COMPILER_ID MATCHES "Clang|GNU") add_definitions(-Wall -Wextra -pedantic -Werror) endif() INCLUDE(FindPkgConfig) pkg_check_modules(READLINE readline) add_definitions(${READLINE_CFLAGS}) add_executable(expect expect.c) target_link_libraries(expect -lreadline ${READLINE_LDFLAGS})