Merge pull request #182 from thecodeshop/cmake

Add CMake build infrastructure
This commit is contained in:
Yukihiro "Matz" Matsumoto
2012-05-22 10:13:08 -07:00
17 changed files with 480 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
# build the core mruby C files
find_package(BISON)
bison_target(mruby parse.y "${CMAKE_CURRENT_BINARY_DIR}/parse.c")
file(GLOB MRUBY_SRC_C "*.c")
list(APPEND MRUBY_SRC_C "${CMAKE_CURRENT_BINARY_DIR}/parse.c")
add_library(mruby_object OBJECT ${MRUBY_SRC_C} ${BISON_mruby_OUTPUTS})
add_library(mruby_static STATIC EXCLUDE_FROM_ALL $<TARGET_OBJECTS:mruby_object>)
# vim: ts=2 sts=2 sw=2 et