forked from DarkflameUniverse/DarkflameServer
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
13 changed files
with
243 additions
and
278 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
file( | ||
GLOB SOURCES_AUTH | ||
LIST_DIRECTORIES false | ||
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
*.cpp | ||
) | ||
|
||
add_executable(AuthServer ${SOURCES_AUTH}) | ||
target_link_libraries(AuthServer ${SHARED_LIBS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
file( | ||
GLOB SOURCES_DCHATFILTER | ||
LIST_DIRECTORIES false | ||
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
*.cpp | ||
) | ||
|
||
add_library(dChatFilter ${SOURCES_DCHATFILTER}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
file( | ||
GLOB SOURCES_CHAT | ||
LIST_DIRECTORIES false | ||
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
*.cpp | ||
) | ||
|
||
add_executable(ChatServer ${SOURCES_CHAT}) | ||
target_link_libraries(ChatServer dChatFilter) | ||
target_link_libraries(ChatServer ${SHARED_LIBS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
file( | ||
GLOB SOURCES_DCOMMON | ||
LIST_DIRECTORIES false | ||
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
*.cpp | ||
) | ||
|
||
add_library(dCommon ${SOURCES_DCOMMON}) | ||
target_link_libraries(dCommon ZLIB::ZLIB) | ||
target_link_libraries(dCommon libbcrypt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
file( | ||
GLOB SOURCES_DDATABASE | ||
LIST_DIRECTORIES false | ||
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
*.cpp | ||
Tables/*.cpp | ||
) | ||
|
||
add_library(dDatabase ${SOURCES_DDATABASE}) | ||
target_link_libraries(dDatabase sqlite3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
file( | ||
GLOB SOURCES_DGAME | ||
LIST_DIRECTORIES false | ||
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
*.cpp | ||
dBehaviors/*.cpp | ||
dComponents/*.cpp | ||
dGameMessages/*.cpp | ||
dInventory/*.cpp | ||
dMission/*.cpp | ||
dEntity/*.cpp | ||
dUtilities/*.cpp | ||
../dScripts/*.cpp | ||
) | ||
|
||
add_library(dGame ${SOURCES_DGAME}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
file( | ||
GLOB SOURCES_DNET | ||
LIST_DIRECTORIES false | ||
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
*.cpp | ||
) | ||
|
||
add_library(dNet ${SOURCES_DNET}) | ||
target_link_libraries(dNet dCommon) # Needed because otherwise linker errors occur. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
file( | ||
GLOB SOURCES_DPHYSICS | ||
LIST_DIRECTORIES false | ||
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
*.cpp | ||
) | ||
|
||
add_library(dPhysics ${SOURCES_DPHYSICS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
file( | ||
GLOB SOURCES_WORLD | ||
LIST_DIRECTORIES false | ||
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
*.cpp | ||
) | ||
|
||
add_executable(WorldServer ${SOURCES_WORLD}) | ||
|
||
target_link_libraries(WorldServer dChatFilter) | ||
target_link_libraries(WorldServer dGame) | ||
target_link_libraries(WorldServer dZoneManager) | ||
target_link_libraries(WorldServer dPhysics) | ||
target_link_libraries(WorldServer detour) | ||
target_link_libraries(WorldServer recast) | ||
target_link_libraries(WorldServer tinyxml2) | ||
target_link_libraries(WorldServer ${SHARED_LIBS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Source Code for dZoneManager | ||
file( | ||
GLOB SOURCES_DZM | ||
LIST_DIRECTORIES false | ||
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
*.cpp | ||
) | ||
|
||
add_library(dZoneManager ${SOURCES_DZM}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters