Fix indentation and divided the cmake into libraries and bins

- Each library and binary got their own CMakeLists.txt
- Indentation was fixed everywhere
- Weird if statement flows replaced
This commit is contained in:
Jett
2022-01-22 10:27:19 +00:00
parent c25a8004be
commit 005a12424e
13 changed files with 248 additions and 283 deletions

View File

@@ -0,0 +1,15 @@
file(
GLOB SOURCES_MASTER
LIST_DIRECTORIES false
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
*.cpp
)
add_executable(MasterServer ${SOURCES_MASTER})
target_link_libraries(MasterServer ${SHARED_LIBS})
if(WIN32)
add_dependencies(MasterServer WorldServer)
add_dependencies(MasterServer AuthServer)
add_dependencies(MasterServer ChatServer)
endif()