diff options
author | madmaxoft <github@xoft.cz> | 2014-07-21 17:35:09 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-21 17:40:44 +0200 |
commit | 5194eef07d4fdb166af295bd5e6360d95175ff32 (patch) | |
tree | 269f2ca54e667ce1673518ef4942bc9101784f22 | |
parent | Normalized spaces after "catch". (diff) | |
download | cuberite-5194eef07d4fdb166af295bd5e6360d95175ff32.tar cuberite-5194eef07d4fdb166af295bd5e6360d95175ff32.tar.gz cuberite-5194eef07d4fdb166af295bd5e6360d95175ff32.tar.bz2 cuberite-5194eef07d4fdb166af295bd5e6360d95175ff32.tar.lz cuberite-5194eef07d4fdb166af295bd5e6360d95175ff32.tar.xz cuberite-5194eef07d4fdb166af295bd5e6360d95175ff32.tar.zst cuberite-5194eef07d4fdb166af295bd5e6360d95175ff32.zip |
Diffstat (limited to '')
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | src/CMakeLists.txt | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index 4a319c5ef..400bf2c91 100644 --- a/.gitignore +++ b/.gitignore @@ -65,6 +65,7 @@ lib/tolua++/tolua src/Bindings/Bindings.* src/Bindings/BindingDependecies.txt MCServer.dir/ +src/AllFiles.lst #win32 cmake stuff *.vcxproj diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9feaf64fe..f494b52e5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -228,6 +228,26 @@ else () set(CMAKE_MODULE_LINKER_FLAGS_RELEASE "${CMAKE_MODULE_LINKER_FLAGS_RELEASE} /DEBUG") endif() + +# Generate a list of all source files: +set(ALLFILES "") +foreach(folder ${FOLDERS}) + get_directory_property(FOLDER_SRCS DIRECTORY ${folder} DEFINITION SRCS) + foreach (src ${FOLDER_SRCS}) + list(APPEND ALLFILES "${folder}/${src}") + endforeach(src) + + get_directory_property(FOLDER_HDRS DIRECTORY ${folder} DEFINITION HDRS) + foreach (hdr ${FOLDER_HDRS}) + list(APPEND ALLFILES "${folder}/${hdr}") + endforeach(hdr) +endforeach(folder) +foreach(arg ${ALLFILES}) + set(ALLFILESLINES "${ALLFILESLINES}${arg}\n") +endforeach() +FILE(WRITE "AllFiles.lst" "${ALLFILESLINES}") + + set(EXECUTABLE MCServer) if (MSVC) |