summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-01-25 14:35:04 +0100
committerTycho <work.tycho+git@gmail.com>2014-01-25 14:35:04 +0100
commit45bc1ff033271bc0c6a9e5931a00c554e065c375 (patch)
treeced6b47cdaae8dbf1d5eb8f21b18e97b492f48ee
parentReformatted Bindings Dependecies (diff)
downloadcuberite-45bc1ff033271bc0c6a9e5931a00c554e065c375.tar
cuberite-45bc1ff033271bc0c6a9e5931a00c554e065c375.tar.gz
cuberite-45bc1ff033271bc0c6a9e5931a00c554e065c375.tar.bz2
cuberite-45bc1ff033271bc0c6a9e5931a00c554e065c375.tar.lz
cuberite-45bc1ff033271bc0c6a9e5931a00c554e065c375.tar.xz
cuberite-45bc1ff033271bc0c6a9e5931a00c554e065c375.tar.zst
cuberite-45bc1ff033271bc0c6a9e5931a00c554e065c375.zip
-rw-r--r--.gitignore1
-rw-r--r--src/CMakeLists.txt7
2 files changed, 8 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index a108a9ece..923735d25 100644
--- a/.gitignore
+++ b/.gitignore
@@ -57,6 +57,7 @@ install_mainfest.txt
src/MCServer
lib/tolua++/tolua
src/Bindings/Bindings.*
+src/Bindings/BindingsDependecies.txt
MCServer.dir/
#win32 cmake stuff
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 4058c1873..9d03a4ffa 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -94,6 +94,13 @@ if (NOT MSVC)
target_link_libraries(Bindings lua sqlite tolualib)
+ #clear file
+ file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/BindingDependecies.txt)
+ foreach(dependecy ${BINDING_DEPENDECIES})
+ #write each dependecy on a seperate line
+ file(APPEND ${CMAKE_CURRENT_SOURCE_DIR}/Bindings/BindingDependecies.txt "${dependecy}\n")
+ endforeach()
+
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "Bindings.cpp Bindings.h")
foreach(folder ${FOLDERS})