1
0
cuberite-2a/lib/lua/CMakeLists.txt
2013-12-21 13:50:32 +00:00

20 lines
286 B
CMake

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()