diff options
author | Alexander Harkness <bearbin@gmail.com> | 2013-12-21 15:08:54 +0100 |
---|---|---|
committer | Alexander Harkness <bearbin@gmail.com> | 2013-12-21 15:08:54 +0100 |
commit | 3dbc1a7e8a046c9bc5e39e8fa1817ee971b96bb4 (patch) | |
tree | f6675b692a8acac2a1de853a2df67f3ee8b6c0a1 /lib/tolua++/CMakeLists.txt | |
parent | You could now only get fish from non-source blocks. Fixed it. (diff) | |
parent | fixed lua dynamic library (diff) | |
download | cuberite-3dbc1a7e8a046c9bc5e39e8fa1817ee971b96bb4.tar cuberite-3dbc1a7e8a046c9bc5e39e8fa1817ee971b96bb4.tar.gz cuberite-3dbc1a7e8a046c9bc5e39e8fa1817ee971b96bb4.tar.bz2 cuberite-3dbc1a7e8a046c9bc5e39e8fa1817ee971b96bb4.tar.lz cuberite-3dbc1a7e8a046c9bc5e39e8fa1817ee971b96bb4.tar.xz cuberite-3dbc1a7e8a046c9bc5e39e8fa1817ee971b96bb4.tar.zst cuberite-3dbc1a7e8a046c9bc5e39e8fa1817ee971b96bb4.zip |
Diffstat (limited to '')
-rw-r--r-- | lib/tolua++/CMakeLists.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/tolua++/CMakeLists.txt b/lib/tolua++/CMakeLists.txt new file mode 100644 index 000000000..239232c38 --- /dev/null +++ b/lib/tolua++/CMakeLists.txt @@ -0,0 +1,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) |