From 4390c30be80de94919eb13741bbfc46456e4b6f7 Mon Sep 17 00:00:00 2001 From: Mihai Tudor Panu Date: Fri, 29 May 2015 17:15:59 -0700 Subject: [PATCH] cmake: added option to turn on/off building of example binaries Signed-off-by: Mihai Tudor Panu --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 89f7bbd4..09bc04d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,6 +59,7 @@ option (BUILDDOC "Build all doc." OFF) option (BUILDSWIG "Build swig modules." ON) option (BUILDSWIGPYTHON "Build swig python modules." ON) option (BUILDSWIGNODE "Build swig node modules." ON) +option (BUILDEXAMPLES "Build C++ example binaries" OFF) if (BUILDDOC) # add a target to generate API documentation with Doxygen @@ -144,4 +145,7 @@ if (IPK) endif() add_subdirectory (src) -add_subdirectory (examples/c++) + +if(BUILDEXAMPLES) + add_subdirectory (examples/c++) +endif()