# # msh2/CMakeLists.txt -- # cmake_minimum_required(VERSION 3.12) project(MSH2 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_compile_options(-Wall -Wextra -pedantic -Werror) endif() add_executable(msh2 msh.c interp.c cmds.c job.c slist.c util.c) target_link_libraries(msh2 -lreadline)