×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: CMake
Posted by: AG Verita
Added: Aug 28, 2016 6:21 AM
Modified: Aug 28, 2016 6:24 AM
Views: 6
Tags: cmake lib ncurses
Find ncurses package.
  1. set(TARGET target)
  2. find_package(Curses)
  3. if (CURSES_FOUND)
  4.     include_directories(${CURSES_INCLUDE_DIR})
  5.     target_link_libraries (${TARGET} ${CURSES_LIBRARIES})
  6. endif (CURSES_FOUND)
  7.