Subzero: Enable a cmake build.
This just puts the CMakeLists.txt file in place. A couple other
changes are needed in other repos to make this take effect.
BUG= none
R=dschuff@chromium.org, mtrofin@chromium.org
Review URL: https://codereview.chromium.org/998693003
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..8db25d8
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,21 @@
+set(LLVM_LINK_COMPONENTS
+ ${LLVM_TARGETS_TO_BUILD}
+ Core
+ IRReader
+ NaClBitReader
+ Support
+ )
+
+file(GLOB pnacl_sz_SRCS "src/*.cpp")
+add_llvm_tool(pnacl-sz ${pnacl_sz_SRCS})
+
+add_definitions(
+ -DALLOW_DUMP=1
+ -DALLOW_LLVM_CL=1
+ -DALLOW_LLVM_IR=1
+ -DALLOW_LLVM_IR_AS_INPUT=1
+ -DALLOW_DISABLE_IR_GEN=1
+ -DALLOW_MINIMAL_BUILD=0
+ )
+
+target_link_libraries(pnacl-sz pthread)