cmake: support X86_REDUCE mode
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3dfd7d6..cb3bc82 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,6 +14,7 @@
 option(MIPS_SUPPORT "MIPS support" ON)
 option(PPC_SUPPORT "PowerPC support" ON)
 option(X86_SUPPORT "X86 support" ON)
+option(X86_REDUCE "X86 with reduce instruction sets to minimize library" ON)
 option(SPARC_SUPPORT "Sparc support" ON)
 option(SYSZ_SUPPORT "SystemZ support" ON)
 option(XCORE_SUPPORT "XCore support" ON)
@@ -139,6 +140,10 @@
     add_definitions(-DCAPSTONE_DIET)
 endif ()
 
+if (X86_REDUCE)
+    add_definitions(-DCAPSTONE_X86_REDUCE)
+endif ()
+
 if (BUILD_STATIC)
     add_library(libcapstone STATIC ${SOURCES})
 else ()