diff options
Diffstat (limited to '')
-rw-r--r-- | lib/lua/CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/lua/CMakeLists.txt b/lib/lua/CMakeLists.txt new file mode 100644 index 000000000..4787b6aa6 --- /dev/null +++ b/lib/lua/CMakeLists.txt @@ -0,0 +1,19 @@ + +cmake_minimum_required (VERSION 2.6) +project (lua) + +include_directories ("${PROJECT_SOURCE_DIR}/../../src/") + +file(GLOB SOURCE + "src/*.c" +) + +if(${STATIC_LUA}) +add_library(lua ${SOURCE}) +else() +add_library(lua SHARED ${SOURCE}) +endif() + +if(UNIX) +target_link_libraries(lua m dl) +endif() |