diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,7 +61,9 @@ ############## Targets ############## add_subdirectory(src) -add_subdirectory(examples) +if (KGAPI_BUILD_EXAMPLES) + add_subdirectory(examples) +endif() if (BUILD_TESTING) add_subdirectory(autotests) endif() diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ ``` To compile example applications, run cmake with `-DKGAPI_BUILD_EXAMPLES=TRUE` argument. -To run automated tests, run `make test`. +To run automated tests, run `make test`. To disable building tests, run cmake with `-DBUILD_TESTING=OFF` argument. ## BUGS: