CMakeLists.txt 593 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Lua core source files.
  2. set(LUA_CORE_SRC
  3. lapi.c
  4. lauxlib.c
  5. lbaselib.c
  6. lcode.c
  7. ldblib.c
  8. ldebug.c
  9. ldo.c
  10. ldump.c
  11. lfunc.c
  12. lgc.c
  13. linit.c
  14. liolib.c
  15. llex.c
  16. lmathlib.c
  17. lmem.c
  18. loadlib.c
  19. lobject.c
  20. lopcodes.c
  21. loslib.c
  22. lparser.c
  23. lstate.c
  24. lstring.c
  25. lstrlib.c
  26. ltable.c
  27. ltablib.c
  28. ltm.c
  29. lundump.c
  30. lvm.c
  31. lzio.c
  32. )
  33. # Lua library
  34. add_library(lua STATIC ${LUA_CORE_SRC})
  35. target_link_libraries(lua ${LIBS})
  36. set_target_properties(lua PROPERTIES
  37. VERSION ${LUA_VERSION}
  38. CLEAN_DIRECT_OUTPUT 1
  39. )
  40. # Compile code as C++
  41. set_source_files_properties(${LUA_CORE_SRC} PROPERTIES LANGUAGE CXX)