I am trying to install ncurses for a project that I'm working on.
I have written this CMake
cmake_minimum_required(VERSION 3.19)
project(FinalProject)
set(CMAKE_CXX_STANDARD 14)
find_package(Curses REQUIRED)
include_directories(${CURSES_INCLUDE_DIR})
add_executable(FinalProject main.cpp)
target_link_libraries(FinalProject ${CURSES_LIBRARIES})
and it produces this error:
CMake Error at D:/JetBrains/CLion 2020.3.3/bin/cmake/win/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message): Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) Call Stack (most recent call first): D:/JetBrains/CLion 2020.3.3/bin/cmake/win/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:582 (_FPHSA_FAILURE_MESSAGE) D:/JetBrains/CLion 2020.3.3/bin/cmake/win/share/cmake-3.19/Modules/FindCurses.cmake:264 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:6 (find_package)
I also have included all the ncurses packages for minGW from the minGW installation manager, except for mingw32-libcurses (dev), which I cannot locate in the manager.
If you could point me where to look to fix this, I would really appreciate it.