* Some cleanups and fixes in cmakes.

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2010-08-08 04:08:18 +02:00
parent 66f1ac04d5
commit bee3e7c681
4 changed files with 22 additions and 40 deletions
+2 -1
View File
@@ -13,12 +13,13 @@
file(GLOB_RECURSE sources_authentication Authentication/*.cpp Authentication/*.h)
file(GLOB_RECURSE sources_realms Realms/*.cpp Realms/*.h)
file(GLOB_RECURSE sources_server Server/*.cpp Server/*.h)
file(GLOB sources_localdir *.cpp *.h)
set(authserver_SRCS
${sources_authentication}
${sources_realms}
${sources_server}
Main.cpp
${sources_localdir}
)
if( WIN32 )
+8 -2
View File
@@ -8,10 +8,16 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
file(GLOB_RECURSE sources *.cpp *.h)
file(GLOB_RECURSE sources_Management Management/*.cpp Management/*.h)
file(GLOB_RECURSE sources_Maps Maps/*.cpp Maps/*.h)
file(GLOB_RECURSE sources_Models Models/*.cpp Models/*.h)
file(GLOB sources_localdir *.cpp *.h)
set(collision_STAT_SRCS
${sources}
${sources_Management}
${sources_Maps}
${sources_Models}
${sources_localdir}
)
include_directories(
+10 -34
View File
@@ -8,43 +8,19 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
file(GLOB_RECURSE sources_Configuration Configuration/*.cpp Configuration*/.h)
file(GLOB_RECURSE sources_Cryptography Cryptography/*.cpp Cryptography*/.h)
file(GLOB_RECURSE sources_Database Database/*.cpp Database*/.h)
file(GLOB_RECURSE sources_DataStores DataStores/*.cpp DataStores*/.h)
file(GLOB_RECURSE sources_Dynamic Dynamic/*.cpp Dynamic*/.h)
file(GLOB_RECURSE sources_Logging Logging/*.cpp Logging*/.h)
file(GLOB_RECURSE sources_Packets Packets/*.cpp Packets*/.h)
file(GLOB_RECURSE sources_Threading Threading/*.cpp Threading*/.h)
file(GLOB_RECURSE sources_Configuration Configuration/*.cpp Configuration/*.h)
file(GLOB_RECURSE sources_Cryptography Cryptography/*.cpp Cryptography/*.h)
file(GLOB_RECURSE sources_Database Database/*.cpp Database/*.h)
file(GLOB_RECURSE sources_DataStores DataStores/*.cpp DataStores/*.h)
file(GLOB_RECURSE sources_Debugging Debugging/*.cpp Debugging/*.h)
file(GLOB_RECURSE sources_Dynamic Dynamic/*.cpp Dynamic/*.h)
file(GLOB_RECURSE sources_Logging Logging/*.cpp Logging/*.h)
file(GLOB_RECURSE sources_Packets Packets/*.cpp Packets/*.h)
file(GLOB_RECURSE sources_Threading Threading/*.cpp Threading/*.h)
file(GLOB_RECURSE sources_Utilities Utilities/*.cpp Utilities/*.h)
file(GLOB sources_localdir *.cpp *.h)
#
# Debugging/ contains platform specific files - create baselist
#
set(sources_Debugging
Debugging/Errors.h
Debugging/MemoryLeaks.cpp
Debugging/MemoryLeaks.h
)
#
# Utilities/ contains platform specific files - create baselist
#
set(sources_Utilities
Utilities/ByteConverter.h
Utilities/EventProcessor.cpp
Utilities/EventProcessor.h
Utilities/ProgressBar.cpp
Utilities/ProgressBar.h
Utilities/SignalHandler.h
Utilities/Timer.h
Utilities/Util.cpp
Utilities/Util.h
)
#
# Build shared sourcelist
#
+2 -3
View File
@@ -12,15 +12,14 @@ file(GLOB_RECURSE sources_CommandLine CommandLine/*.cpp CommandLine/*.h)
file(GLOB_RECURSE sources_RemoteAccess RemoteAccess/*.cpp RemoteAccess/*.h)
file(GLOB_RECURSE sources_TCSoap TCSoap/*.cpp TCSoap/*.h)
file(GLOB_RECURSE sources_WorldThread WorldThread/*.cpp WorldThread/*.h)
file(GLOB sources_localdir *.cpp *.h)
set(worldserver_SRCS
${sources_CommandLine}
${sources_RemoteAccess}
${sources_TCSoap}
${sources_WorldThread}
Main.cpp
Master.cpp
Master.h
${sources_localdir}
)
if( WIN32 )