summaryrefslogtreecommitdiffstats
path: root/lib/tolua++/CMakeLists.txt
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-19 01:52:52 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-19 01:52:52 +0100
commite2549dfcb295b5c68ad540c71442d1524adb3d0f (patch)
tree570d21d9eb630119e628f7b2558922656d894c07 /lib/tolua++/CMakeLists.txt
parentcompiling sqlite (diff)
downloadcuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar.gz
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar.bz2
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar.lz
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar.xz
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.tar.zst
cuberite-e2549dfcb295b5c68ad540c71442d1524adb3d0f.zip
Diffstat (limited to 'lib/tolua++/CMakeLists.txt')
-rw-r--r--lib/tolua++/CMakeLists.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/tolua++/CMakeLists.txt b/lib/tolua++/CMakeLists.txt
index 2b071108c..877b89076 100644
--- a/lib/tolua++/CMakeLists.txt
+++ b/lib/tolua++/CMakeLists.txt
@@ -6,12 +6,16 @@ include_directories ("${PROJECT_SOURCE_DIR}/../../src/")
include_directories ("${PROJECT_SOURCE_DIR}/include/")
include_directories ("${PROJECT_SOURCE_DIR}/../")
-file(GLOB SOURCE
+file(GLOB LIB_SOURCE
+ "src/lib/*.c"
+)
+
+file(GLOB BIN_SOURCE
"src/bin/*.c"
- "src/lib/*.c"
)
-add_executable(tolua ${SOURCE})
+add_executable(tolua ${BIN_SOURCE})
+add_library(tolualib ${LIB_SOURCE})
#m is the standard math librarys
-target_link_libraries(tolua lua m)
+target_link_libraries(tolua lua m tolualib)