From 007d3dd1a9ca4b00cdb81d7b72a608687c024d50 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Sun, 30 Oct 2011 11:17:26 +0000 Subject: [PATCH] Brief documentation. --- CMakeLists.txt | 9 ++++++--- README.md | 9 +++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 README.md diff --git a/CMakeLists.txt b/CMakeLists.txt index 907f0ba..7975877 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,9 +59,12 @@ if (MSVC) add_definitions (-wd4244) # conversion' conversion from 'type1' to 'type2', possible loss of data endif () - -set (APITRACE_BINARY_DIR "${CMAKE_BINARY_DIR}/.." CACHE PATH "apitrace build directory") - +if (NOT APITRACE_BINARY_DIR) + set (APITRACE_BINARY_DIR "${CMAKE_BINARY_DIR}/.." CACHE PATH "apitrace build directory") +endif () +if (NOT EXISTS ${APITRACE_BINARY_DIR}) + message (SEND_ERROR "Invalid APITRACE_BINARY_DIR") +endif () enable_testing() diff --git a/README.md b/README.md new file mode 100644 index 0000000..7b7a7e6 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +This is an attempt to write an automated test suite for apitrace. + +It is still work in progress, and has a lot unfinished code/ideas. + +To run the test suite do + + cmake -DAPITRACE_BINARY_DIR=/path/to/apitrace/build/ . + make + make test -- 2.43.0