pull/2436/head
nick black 3 years ago committed by nick black
parent 403bf91634
commit 345c48975d

@ -106,7 +106,7 @@ pkg_check_modules(AVUTIL REQUIRED libavutil>=56.0)
pkg_check_modules(SWSCALE REQUIRED libswscale>=5.0)
set_property(GLOBAL APPEND PROPERTY PACKAGES_FOUND FFMpeg)
elseif(${USE_OIIO})
pkg_check_modules(OIIO REQUIRED OpenImageIO>=2.1)
find_package(OpenImageIO 2.1 REQUIRED)
set_property(GLOBAL APPEND PROPERTY PACKAGES_FOUND OpenImageIO)
endif()
endif()
@ -384,12 +384,12 @@ target_link_directories(notcurses-static
"${AVUTIL_STATIC_LIBRARY_DIRS}"
)
elseif(${USE_OIIO})
target_include_directories(notcurses PUBLIC "${OIIO_INCLUDE_DIRS}")
target_include_directories(notcurses-static PUBLIC "${OIIO_STATIC_INCLUDE_DIRS}")
target_link_libraries(notcurses PRIVATE ${OIIO_LIBRARIES})
target_link_libraries(notcurses-static PRIVATE ${OIIO_STATIC_LIBRARIES})
target_link_directories(notcurses PRIVATE ${OIIO_LIBRARY_DIRS})
target_link_directories(notcurses-static PRIVATE ${OIIO_STATIC_LIBRARY_DIRS})
target_include_directories(notcurses PUBLIC "${OPENIMAGEIO_INCLUDE_DIRS}")
target_include_directories(notcurses-static PUBLIC "${OPENIMAGEIO_STATIC_INCLUDE_DIRS}")
target_link_libraries(notcurses PRIVATE OpenImageIO)
target_link_libraries(notcurses-static PRIVATE ${OPENIMAGEIO_STATIC_LIBRARY})
target_link_directories(notcurses PRIVATE ${OPENIMAGEIO_LIBRARY_DIRS})
target_link_directories(notcurses-static PRIVATE ${OPENIMAGEIO_STATIC_LIBRARY_DIRS})
endif()
############################################################################
@ -624,6 +624,23 @@ target_link_libraries(nctetris
)
endif()
############################################################################
# ncman
file(GLOB NCMANSRCS CONFIGURE_DEPENDS src/man/*.c)
add_executable(ncman ${NCMANSRCS} ${COMPATSRC})
target_include_directories(ncman
BEFORE
PRIVATE
include
src
"${CMAKE_REQUIRED_INCLUDES}"
"${PROJECT_BINARY_DIR}/include"
)
target_link_libraries(ncman
PRIVATE
notcurses-core
)
############################################################################
# ncneofetch
file(GLOB FETCHSRCS CONFIGURE_DEPENDS src/fetch/*.c src/compat/*.c)
@ -948,6 +965,7 @@ install(FILES ${MARKDOWN} DESTINATION ${CMAKE_INSTALL_DOCDIR})
install(TARGETS notcurses-demo DESTINATION bin)
install(TARGETS notcurses-info DESTINATION bin)
install(TARGETS ncneofetch DESTINATION bin)
install(TARGETS ncman DESTINATION bin)
if(${USE_CPP})
install(TARGETS notcurses-input DESTINATION bin)
install(TARGETS nctetris DESTINATION bin)

@ -42,6 +42,7 @@
<a href="notcurses.3.html">notcurses(3)</a>—a blingful TUI library<br/>
<h3>Executables (section 1)</h3>
<a href="ncls.1.html">ncls</a>—list files, displaying multimedia along with them<br/>
<a href="ncman.1.html">ncman</a>—swank man page browser<br/>
<a href="ncneofetch.1.html">ncneofetch</a>—generate low-effort posts for r/unixporn<br/>
<a href="ncplayer.1.html">ncplayer</a>—renders images and video to a terminal<br/>
<a href="nctetris.1.html">nctetris</a>—Tetris in a terminal<br/>

@ -0,0 +1,35 @@
% ncman(1)
% nick black <nickblack@linux.com>
% v3.0.0
# NAME
ncman - Swank manual page browser
# SYNOPSIS
**ncman** [**-h**] [**-V**] files
# DESCRIPTION
**ncman** displays manual pages ala **man(1)** using the Notcurses
(**notcurses(3)**) terminal UI library.
# OPTIONS
**-V**: Print the program name and version, and exit with success.
**-h**: Print help information, and exit with success.
files: Files to render.
# NOTES
# BUGS
# SEE ALSO
**man(1)**,
**notcurses(3)**,
**man-pages(7)**,
**unicode(7)**
Loading…
Cancel
Save