CMake: add demo target

This commit is contained in:
nick black 2020-12-03 01:47:40 -05:00
parent f6a5aebf71
commit f3688f44fb
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 6 additions and 1 deletions

View File

@ -605,6 +605,11 @@ install(TARGETS notcurses-tester DESTINATION bin)
endif()
endif()
add_custom_target(demo
COMMAND ./notcurses-demo -p ${CMAKE_CURRENT_SOURCE_DIR}/data -c
DEPENDS notcurses-demo
)
# pkg-config support
configure_file(tools/notcurses.pc.in
${CMAKE_CURRENT_BINARY_DIR}/notcurses.pc

View File

@ -145,7 +145,7 @@ test failures, *please* file a bug including the output of
(`make test` also runs `notcurses-tester`, but hides important output).
To watch the bitchin' demo, run `./notcurses-demo -p ../data`. More details can
To watch the bitchin' demo, run `make demo`. More details can
be found on the `notcurses-demo(1)` man page.
Install with `make install` following a successful build. This installs the C