1
0
cuberite-2a/lib/lua/CMakeLists.txt

19 lines
282 B
CMake
Raw Normal View History

2013-12-18 18:14:11 -05:00
cmake_minimum_required (VERSION 2.6)
project (lua)
include_directories ("${PROJECT_SOURCE_DIR}/../../src/")
file(GLOB SOURCE
2013-12-18 18:54:55 -05:00
"src/*.c"
2013-12-18 18:14:11 -05:00
)
if(${STATIC_LUA})
2013-12-18 18:54:55 -05:00
add_library(lua ${SOURCE})
else()
add_library(lua SHARED ${SOURCE})
endif()
2013-12-18 18:14:11 -05:00
2013-12-20 10:37:35 -05:00
if(UNIX)
2013-12-20 10:24:55 -05:00
target_link_libraries(lua m)
2013-12-20 10:37:35 -05:00
endif()