summaryrefslogtreecommitdiffstats
path: root/lib/tolua++/CMakeLists.txt
blob: 239232c38e35c1d00e0306f92534048637b99e78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

cmake_minimum_required (VERSION 2.6)
project (tolua++)

include_directories ("${PROJECT_SOURCE_DIR}/../../src/")
include_directories ("${PROJECT_SOURCE_DIR}/include/")
include_directories ("${PROJECT_SOURCE_DIR}/../")

file(GLOB LIB_SOURCE
    "src/lib/*.c"
)

file(GLOB BIN_SOURCE
    "src/bin/*.c"
)

add_executable(tolua ${BIN_SOURCE})
add_library(tolualib ${LIB_SOURCE})

#m is the standard math librarys
if(UNIX)
target_link_libraries(tolua m)
endif()

target_link_libraries(tolua lua tolualib)