mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add native and cross compiling CMake build support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user