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
|
|
|
)
|
|
|
|
|
2013-12-20 10:29:34 -05:00
|
|
|
if(${STATIC_LUA})
|
2013-12-18 18:54:55 -05:00
|
|
|
add_library(lua ${SOURCE})
|
2013-12-20 10:29:34 -05:00
|
|
|
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()
|