?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. ##############################################################
  2. #
  3. # CMakeLists.txt - created by Cizo2000 <cizo2000@gmail.com>
  4. # modified from lua5.1 to lua5.4 by Ped7g
  5. #
  6. ##############################################################
  7.  
  8. cmake_minimum_required(VERSION 3.9.6)
  9. set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
  10.  
  11. project(lua5.4)
  12.  
  13. set(LUA_SOURCES
  14.         lapi.c
  15.         lauxlib.c
  16.         lbaselib.c
  17.         lcode.c
  18.         lcorolib.c
  19.         lctype.c
  20.         ldblib.c
  21.         ldebug.c
  22.         ldo.c
  23.         ldump.c
  24.         lfunc.c
  25.         lgc.c
  26.         linit.c
  27.         liolib.c
  28.         llex.c
  29.         lmathlib.c
  30.         lmem.c
  31.         loadlib.c
  32.         lobject.c
  33.         lopcodes.c
  34.         loslib.c
  35.         lparser.c
  36.         lstate.c
  37.         lstring.c
  38.         lstrlib.c
  39.         ltable.c
  40.         ltablib.c
  41.         ltm.c
  42.         lundump.c
  43.         lutf8lib.c
  44.         lvm.c
  45.         lzio.c
  46. )
  47.  
  48. if( ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
  49.                 add_definitions(-DLUA_USE_LINUX)
  50.         elseif(CYGWIN)
  51.                 add_definitions(-DLUA_USE_LINUX)
  52.         elseif(WIN32)
  53. endif()
  54.  
  55. #Ped7g -pedantic removed, there's too many warnings with GCC and Lua5.4
  56. set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Wno-pedantic")
  57. set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wno-pedantic")
  58.  
  59. add_library(lua5.4 ${LUA_SOURCES})
  60. target_include_directories(lua5.4 PUBLIC include)
  61.