cmake does non link ncurses -



cmake does non link ncurses -

i total noob concerning cmake. cmakelists basic:

cmake_minimum_required(version 2.4.6) #set default path built executables "bin" directory set(executable_output_path ${project_source_dir}/bin) #set default path built libraries "lib" directory set(library_output_path ${project_source_dir}/lib) #for curses library load: set(curses_use_ncurses true) include_directories( "src/" ) add_subdirectory(src)

when create linker not find ncurses commands , in verbose mode of create see compiler did not add together -lncurses. have add together cmakelists create work?

before utilize 3rd party libs, ought find it! in case of ncurses need add together find_package(curses required) , utilize ${curses_libraries} in phone call target_link_libraries() , include_directories(${curses_include_dir}).

cmake ncurses

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -