aboutsummaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-02-21 11:51:12 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-02-21 11:51:12 +0100
commitcf4045ff0f7c96614e64b2b336e62a240f443ea6 (patch)
tree7229e1a72487b22d55aba067b15619490d730d58 /src/network
parent81930b17297bbb3c5f938d202c68903b18c83734 (diff)
downloadminetest-cf4045ff0f7c96614e64b2b336e62a240f443ea6.tar.gz
minetest-cf4045ff0f7c96614e64b2b336e62a240f443ea6.tar.bz2
minetest-cf4045ff0f7c96614e64b2b336e62a240f443ea6.zip
Use proper CMakeLists.txt for network and client directories
Diffstat (limited to 'src/network')
-rw-r--r--src/network/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/network/CMakeLists.txt b/src/network/CMakeLists.txt
new file mode 100644
index 000000000..3162469c8
--- /dev/null
+++ b/src/network/CMakeLists.txt
@@ -0,0 +1,15 @@
+set(common_network_SRCS
+ ${CMAKE_CURRENT_SOURCE_DIR}/connection.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/networkpacket.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/packethandlers/server.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/serveropcodes.cpp
+ PARENT_SCOPE
+)
+
+if (BUILD_CLIENT)
+ set(client_network_SRCS
+ ${CMAKE_CURRENT_SOURCE_DIR}/clientopcodes.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/packethandlers/client.cpp
+ PARENT_SCOPE
+ )
+endif(BUILD_CLIENT) \ No newline at end of file