📜  将 ncurses 添加到 cmake - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:30.502000             🧑  作者: Mango

代码示例1
cmake_minimum_required(VERSION 2.8) project(main)

find_package(Curses REQUIRED)
include_directories(${CURSES_INCLUDE_DIR})

add_executable(main main.cpp)
target_link_libraries(main ${CURSES_LIBRARIES})