More cmake fixes. Now cmake runs without errors with -DO_SCRIPTS=0

--HG--
branch : trunk
This commit is contained in:
Tartalo
2010-06-07 12:41:57 +02:00
parent 74b3fb53c0
commit ce1b22ed0c
7 changed files with 605 additions and 609 deletions
+9 -9
View File
@@ -1,16 +1,16 @@
########### next target ############### ########### next target ###############
SET(trinity-realm_SRCS SET(trinity-realm_SRCS
AuthCodes.cpp Authentication/AuthCodes.cpp
AuthCodes.h Authentication/AuthCodes.h
AuthSocket.cpp Realms/RealmList.cpp
AuthSocket.h Realms/RealmList.h
Server/AuthSocket.cpp
Server/AuthSocket.h
Server/RealmSocket.h
Server/RealmSocket.cpp
Server/RealmAcceptor.h
Main.cpp Main.cpp
RealmList.cpp
RealmList.h
RealmSocket.h
RealmSocket.cpp
RealmAcceptor.h
) )
include_directories( include_directories(
+3 -3
View File
@@ -372,8 +372,6 @@ if(NOT DO_SCRIPTS)
SET(game_STAT_SRCS ${game_STAT_SRCS} SET(game_STAT_SRCS ${game_STAT_SRCS}
AI/ScriptedAI/ScriptedEscortAI.cpp AI/ScriptedAI/ScriptedEscortAI.cpp
AI/ScriptedAI/ScriptedEscortAI.h AI/ScriptedAI/ScriptedEscortAI.h
ScriptMgr/ScriptedPch.cpp
ScriptMgr/ScriptedPch.h
AI/ScriptedAI/ScriptedCreature.cpp AI/ScriptedAI/ScriptedCreature.cpp
AI/ScriptedAI/ScriptedCreature.h AI/ScriptedAI/ScriptedCreature.h
AI/ScriptedAI/ScriptedFollowerAI.cpp AI/ScriptedAI/ScriptedFollowerAI.cpp
@@ -384,6 +382,8 @@ if(NOT DO_SCRIPTS)
AI/ScriptedAI/ScriptedInstance.h AI/ScriptedAI/ScriptedInstance.h
AI/ScriptedAI/ScriptedSimpleAI.cpp AI/ScriptedAI/ScriptedSimpleAI.cpp
AI/ScriptedAI/ScriptedSimpleAI.h AI/ScriptedAI/ScriptedSimpleAI.h
PrecompiledHeaders/ScriptPCH.cpp
PrecompiledHeaders/ScriptPCH.h
) )
message("-- Added Script Engine to GAME lib") message("-- Added Script Engine to GAME lib")
endif(NOT DO_SCRIPTS) endif(NOT DO_SCRIPTS)
@@ -393,6 +393,6 @@ ADD_DEPENDENCIES(game revision.h)
# Generate precompiled header # Generate precompiled header
IF(DO_PCH AND CMAKE_COMPILER_IS_GNUCXX) IF(DO_PCH AND CMAKE_COMPILER_IS_GNUCXX)
ADD_PRECOMPILED_HEADER(game ${CMAKE_SOURCE_DIR}/src/server/game/PrecompiledHeaders/pchlinux.h) ADD_PRECOMPILED_HEADER(game ${CMAKE_SOURCE_DIR}/src/server/game/PrecompiledHeaders/NixCorePCH.h)
ENDIF(DO_PCH AND CMAKE_COMPILER_IS_GNUCXX) ENDIF(DO_PCH AND CMAKE_COMPILER_IS_GNUCXX)
File diff suppressed because it is too large Load Diff
+14 -14
View File
@@ -13,22 +13,22 @@ add_subdirectory(Utilities)
########### next target ############### ########### next target ###############
SET(shared_STAT_SRCS SET(shared_STAT_SRCS
ByteBuffer.h Debugging/Errors.h
Logging/Log.cpp
Logging/Log.h
Packets/ByteBuffer.h
Packets/WorldPacket.h
Threading/DelayExecutor.cpp
Threading/DelayExecutor.h
Threading/Threading.cpp
Utilities/ProgressBar.cpp
Utilities/ProgressBar.h
Utilities/SignalHandler.h
Utilities/Timer.h
Utilities/Util.cpp
Utilities/Util.h
Common.cpp Common.cpp
Common.h Common.h
DelayExecutor.cpp
DelayExecutor.h
Errors.h
Log.cpp
Log.h
ProgressBar.cpp
ProgressBar.h
SignalHandler.h
Threading.cpp
Timer.h
Util.cpp
Util.h
WorldPacket.h
SystemConfig.h SystemConfig.h
) )
+10 -11
View File
@@ -2,25 +2,24 @@
########### next target ############### ########### next target ###############
SET(trinityauth_STAT_SRCS SET(trinityauth_STAT_SRCS
AuthCrypt.cpp Authentication/AuthCrypt.cpp
AuthCrypt.h Authentication/AuthCrypt.h
BigNumber.cpp BigNumber.cpp
BigNumber.h BigNumber.h
Hmac.cpp HMACSHA1.cpp
Hmac.h HMACSHA1.h
Sha1.cpp SHA1.cpp
Sha1.h SHA1.h
md5.c MD5.c
md5.h MD5.h
SARC4.cpp ARC4.cpp
SARC4.h ARC4.h
) )
include_directories( include_directories(
${ACE_INCLUDE_DIR} ${ACE_INCLUDE_DIR}
${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src/server/shared ${CMAKE_SOURCE_DIR}/src/server/shared
${CMAKE_SOURCE_DIR}/src/server/framework
${MYSQL_INCLUDE_DIR} ${MYSQL_INCLUDE_DIR}
) )
+3 -4
View File
@@ -1,7 +1,7 @@
SET(trinitydatabase_STAT_SRCS SET(trinitydatabase_STAT_SRCS
DBCFileLoader.cpp ../DataStores/DBCFileLoader.cpp
DBCFileLoader.h ../DataStores/DBCFileLoader.h
DBCStore.h ../DataStores/DBCStore.h
Database.cpp Database.cpp
Database.h Database.h
DatabaseEnv.h DatabaseEnv.h
@@ -23,7 +23,6 @@ include_directories(
${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src/server/shared ${CMAKE_SOURCE_DIR}/src/server/shared
${CMAKE_SOURCE_DIR}/src/server/shared/Database ${CMAKE_SOURCE_DIR}/src/server/shared/Database
${CMAKE_SOURCE_DIR}/src/server/framework
${CMAKE_SOURCE_DIR}/src/server/game/Entities/Object ${CMAKE_SOURCE_DIR}/src/server/game/Entities/Object
${MYSQL_INCLUDE_DIR} ${MYSQL_INCLUDE_DIR}
) )
+6 -8
View File
@@ -2,15 +2,15 @@
########### next target ############### ########### next target ###############
SET(trinity-core_SRCS SET(trinity-core_SRCS
CliRunnable.cpp CommandLine/CliRunnable.cpp
CliRunnable.h CommandLine/CliRunnable.h
RemoteAccess/RASocket.cpp
RemoteAccess/RASocket.h
WorldThread/WorldRunnable.cpp
WorldThread/WorldRunnable.h
Main.cpp Main.cpp
Master.cpp Master.cpp
Master.h Master.h
RASocket.cpp
RASocket.h
WorldRunnable.cpp
WorldRunnable.h
) )
include_directories( include_directories(
@@ -19,8 +19,6 @@ include_directories(
${CMAKE_SOURCE_DIR}/dep/include ${CMAKE_SOURCE_DIR}/dep/include
${CMAKE_SOURCE_DIR}/src/server/shared ${CMAKE_SOURCE_DIR}/src/server/shared
${CMAKE_SOURCE_DIR}/src/server/shared/Database ${CMAKE_SOURCE_DIR}/src/server/shared/Database
${CMAKE_SOURCE_DIR}/src/server/shared/vmap
${CMAKE_SOURCE_DIR}/src/server/framework
${CMAKE_SOURCE_DIR}/src/server/game ${CMAKE_SOURCE_DIR}/src/server/game
${CMAKE_SOURCE_DIR}/src/server/game/Account ${CMAKE_SOURCE_DIR}/src/server/game/Account
${CMAKE_SOURCE_DIR}/src/server/game/Achievements ${CMAKE_SOURCE_DIR}/src/server/game/Achievements