I am a total noob concerning CMake. My CMakeLists.txt
is really basic:
cmake_minimum_required(VERSION 2.4.6)
#set the default path for built executables to the "bin" directory
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#set the default path for built libraries to the "lib" directory
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
#For the Curses library to load:
SET(CURSES_USE_NCURSES TRUE)
include_directories(
"src/"
)
add_subdirectory(src)
When I make, the linker does not find the ncurses commands and in the verbose mode of make, I see that the compiler did not add the -lncurses
. What do I have to add to the CMakeLists to make it work?