summaryrefslogtreecommitdiffhomepage
path: root/tools/mrbc/CMakeLists.txt
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-05-22 10:13:08 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-05-22 10:13:08 -0700
commit618697cbb6f2cb96f6e7d076d2beda3bb98b2577 (patch)
tree283f3971bb4ff37ef137853bc89154fa13c04edd /tools/mrbc/CMakeLists.txt
parent1eb02552eae24854f66ecc32104f6c2dcf6a9efb (diff)
parent9f89da6eef2c830db6fc3abb08fe755ae7ce9b6c (diff)
downloadmruby-618697cbb6f2cb96f6e7d076d2beda3bb98b2577.tar.gz
mruby-618697cbb6f2cb96f6e7d076d2beda3bb98b2577.zip
Merge pull request #182 from thecodeshop/cmake
Add CMake build infrastructure
Diffstat (limited to 'tools/mrbc/CMakeLists.txt')
-rw-r--r--tools/mrbc/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/mrbc/CMakeLists.txt b/tools/mrbc/CMakeLists.txt
new file mode 100644
index 000000000..71a3a937d
--- /dev/null
+++ b/tools/mrbc/CMakeLists.txt
@@ -0,0 +1,9 @@
+# build tools/mrbc executable
+
+file(GLOB MRBC_SRC_C "*.c")
+add_executable(mrbc ${MRBC_SRC_C})
+target_link_libraries(mrbc mruby_static ${MRUBY_LIBS})
+
+install(TARGETS mrbc RUNTIME DESTINATION bin)
+
+# vim: ts=2 sts=2 sw=2 et