cstool: compile with CMake using CMakeLists.txt in root dir
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8ae0482..8749f30 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -389,4 +389,9 @@
             ARCHIVE DESTINATION lib)
 endif ()
 
-add_subdirectory(cstool)
+if (CAPSTONE_BUILD_SHARED)
+add_executable(cstool "cstool/cstool.c")
+target_link_libraries(cstool ${default-target})
+
+install(TARGETS cstool DESTINATION bin)
+endif ()