cstool: prepare for multiple C sources
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8749f30..5d8885d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -390,7 +390,8 @@
 endif ()
 
 if (CAPSTONE_BUILD_SHARED)
-add_executable(cstool "cstool/cstool.c")
+FILE(GLOB CSTOOL_SRC cstool/*.c)
+add_executable(cstool ${CSTOOL_SRC})
 target_link_libraries(cstool ${default-target})
 
 install(TARGETS cstool DESTINATION bin)