summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-21 17:35:09 +0200
committermadmaxoft <github@xoft.cz>2014-07-21 17:40:44 +0200
commit5194eef07d4fdb166af295bd5e6360d95175ff32 (patch)
tree269f2ca54e667ce1673518ef4942bc9101784f22 /src
parentNormalized spaces after "catch". (diff)
downloadcuberite-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 'src')
-rw-r--r--src/CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
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)