diff --git a/CMakeLists.txt b/CMakeLists.txt index a324636ef..eefc40309 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/README.md b/README.md index 7590f052e..1be9613b9 100644 --- a/README.md +++ b/README.md @@ -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