mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
CMake: Simplify cmake target+version config generation and make it actually work. With the changes it is now possible to detect and use `Notcurses` in the following way: find_package(Notcurses REQUIRED) ... target_link_libraries(myapp PRIVATE notcurses::notcurses) Also, added the same CMake configuration for `Notcurses++`, to be used in the following way: find_package(Notcurses REQUIRED find_package(Notcurses++ REQUIRED) ... target_link_libraries(myapp PRIVATE notcurses++::notcurses++) Docs: `notcurses_cell(3)`: `cell_styles_{on,off} -> cell_{on,off}_styles` and `cell_load_simple` -> `cell_load_char` C++ API: * Plane: added constructors taking `ncplane_options const&` instead of the multitude of individual parameters * Plane: drop `struct` when `ncplane_options` is used. * Plane: added `strdup` (`cell_strdup`) * Plane: added `extract` (`cell_extract`)