Add native and cross compiling CMake build support

This commit is contained in:
Jon
2012-05-02 20:46:09 -04:00
parent b5dcb7128d
commit 9f89da6eef
22 changed files with 442 additions and 162 deletions
+5 -3
View File
@@ -1,7 +1,9 @@
# builds tools/mrbc
# build tools/mruby executable
file(GLOB MRUBYBIN_SRC_C "*.c")
add_executable(mruby ${MRUBYBIN_SRC_C})
target_link_libraries(mruby mrubylib_static ${MRUBY_LIBS})
target_link_libraries(mruby libmruby_static ${MRUBY_LIBS})
install(TARGETS mruby RUNTIME DESTINATION bin)
# vim: ts=2 sts=2 sw=2 et