[Misc] A hodgepodge of tiny changes
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`)pull/1149/head
parent
059007bd50
commit
c5c9432ac0
@ -1,9 +0,0 @@
|
||||
@PACKAGE_INIT@
|
||||
set(Notcurses_DIR "@PACKAGE_SOME_INSTALL_DIR@")
|
||||
|
||||
# Compute paths
|
||||
get_filename_component(Notcurses_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
set(Notcurses_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@")
|
||||
set(Notcurses_LIBRARY_DIRS "@CONF_LIBRARY_DIRS@")
|
||||
|
||||
set(Notcurses_LIBRARIES -lnotcurses)
|
Loading…
Reference in New Issue