CMakeLists.txt:
project(lua)
aux_source_directory(${LUA_SRC_DIR} LUA_SOURCES)
list(REMOVE_ITEM LUA_SOURCES ${LUA_SRC_DIR}/lua.c ${LUA_SRC_DIR}/luac.c)
add_definitions(-DBUILD_LUA_AS_DLL -DLUA_LIB)
add_library(lua SHARED ${LUA_SOURCES})
seems nothing wrong, why this happen?