summaryrefslogtreecommitdiffstats
path: root/lib/lua/CMakeLists.txt
blob: 695d75e7ea2ad1369edc54ed8199c056e37abee9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
endif()