aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/examples.cmake
diff options
context:
space:
mode:
authorGravatar Konstantin Podsvirov <konstantin@podsvirov.pro>2016-06-01 17:00:08 +0300
committerGravatar Konstantin Podsvirov <konstantin@podsvirov.pro>2016-06-04 00:10:07 +0300
commit71556295ffe315be34ce70e1a6821860fb088f07 (patch)
tree2429940c0d78972693670df9aea755cf23ec9d59 /cmake/examples.cmake
parent20b532544fde1dff34429b52db95c3a96409b73c (diff)
CMake project updates
A series of improvements: - Improved Protobuf module compatibility (disabled by default); - Hide advanced settings; - Added build tree configuration; - Added build of examples.
Diffstat (limited to 'cmake/examples.cmake')
-rw-r--r--cmake/examples.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/examples.cmake b/cmake/examples.cmake
new file mode 100644
index 00000000..f7d4d601
--- /dev/null
+++ b/cmake/examples.cmake
@@ -0,0 +1,10 @@
+if(protobuf_VERBOSE)
+ message(STATUS "Protocol Buffers Examples Configuring...")
+endif()
+
+# Add examples subproject
+add_subdirectory(../examples examples)
+
+if(protobuf_VERBOSE)
+ message(STATUS "Protocol Buffers Examples Configuring done")
+endif()