Add install step

Change-Id: Ie863ddcf73653d1404a1e84109ebdf66af5dff26
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fc0363a..f50c491 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -71,6 +71,9 @@
 add_executable(flatsamplebinary ${FlatBuffers_Sample_Binary_SRCS})
 add_executable(flatsampletext ${FlatBuffers_Sample_Text_SRCS})
 
+install(DIRECTORY include/flatbuffers DESTINATION include)
+install(TARGETS flatc DESTINATION bin)
+
 add_test(NAME flattest
          CONFIGURATIONS Debug
          WORKING_DIRECTORY tests