1
0
cuberite-2a/lib/tolua++/CMakeLists.txt

26 lines
501 B
CMake
Raw Normal View History

2013-12-18 18:54:55 -05:00
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}/../")
2013-12-18 19:52:52 -05:00
file(GLOB LIB_SOURCE
"src/lib/*.c"
)
file(GLOB BIN_SOURCE
2013-12-18 18:54:55 -05:00
"src/bin/*.c"
)
2013-12-18 19:52:52 -05:00
add_executable(tolua ${BIN_SOURCE})
add_library(tolualib ${LIB_SOURCE})
2013-12-18 18:54:55 -05:00
#m is the standard math librarys
if(UNIX)
2013-12-20 09:03:40 -05:00
target_link_libraries(tolua m)
endif()
target_link_libraries(tolua lua tolualib)