mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Use proper CMakeLists.txt for network and client directories
This commit is contained in:
parent
81930b1729
commit
cf4045ff0f
3 changed files with 28 additions and 7 deletions
15
src/network/CMakeLists.txt
Normal file
15
src/network/CMakeLists.txt
Normal file
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue