Skip to content

Commit

Permalink
Add base Lua scripting stuff, and a little example that currently doe…
Browse files Browse the repository at this point in the history
…s nothing
  • Loading branch information
DanielOaks committed Sep 23, 2014
1 parent 936a0b8 commit 3bcf909
Show file tree
Hide file tree
Showing 83 changed files with 34,368 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,29 @@ project(craft)

FILE(GLOB SOURCE_FILES src/*.c)

FILE(GLOB LUA_FILES deps/lua/*.c)
LIST(REMOVE_ITEM LUA_FILES ${CMAKE_CURRENT_SOURCE_DIR}/deps/lua/lua.c)
LIST(REMOVE_ITEM LUA_FILES ${CMAKE_CURRENT_SOURCE_DIR}/deps/lua/luac.c)

add_executable(
craft
${SOURCE_FILES}
deps/glew/src/glew.c
deps/lodepng/lodepng.c
deps/noise/noise.c
deps/sqlite/sqlite3.c
deps/tinycthread/tinycthread.c)
deps/tinycthread/tinycthread.c
${LUA_FILES})

add_definitions(-std=c99 -O3)

add_subdirectory(deps/glfw)
include_directories(deps/glew/include)
include_directories(deps/glfw/include)
include_directories(deps/lodepng)
include_directories(deps/lua)
include_directories(deps/noise)
include_directories(deps/sglib)
include_directories(deps/sqlite)
include_directories(deps/tinycthread)

Expand Down
Loading

0 comments on commit 3bcf909

Please sign in to comment.