From f3688f44fbe7cf0f8678c313e9c73128c8860580 Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 3 Dec 2020 01:47:40 -0500 Subject: [PATCH] CMake: add demo target --- CMakeLists.txt | 5 +++++ README.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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