diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-05-22 10:13:08 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-05-22 10:13:08 -0700 |
| commit | 618697cbb6f2cb96f6e7d076d2beda3bb98b2577 (patch) | |
| tree | 283f3971bb4ff37ef137853bc89154fa13c04edd /src | |
| parent | 1eb02552eae24854f66ecc32104f6c2dcf6a9efb (diff) | |
| parent | 9f89da6eef2c830db6fc3abb08fe755ae7ce9b6c (diff) | |
| download | mruby-618697cbb6f2cb96f6e7d076d2beda3bb98b2577.tar.gz mruby-618697cbb6f2cb96f6e7d076d2beda3bb98b2577.zip | |
Merge pull request #182 from thecodeshop/cmake
Add CMake build infrastructure
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 000000000..390129eb9 --- /dev/null +++ b/src/CMakeLists.txt @@ -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 |
