From e2549dfcb295b5c68ad540c71442d1524adb3d0f Mon Sep 17 00:00:00 2001 From: Tycho Bickerstaff Date: Thu, 19 Dec 2013 00:52:52 +0000 Subject: added expat as lua bindings dependincy --- lib/tolua++/CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'lib/tolua++/CMakeLists.txt') 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) -- cgit v1.2.3