Cleaned up include directories in cmakes.
--HG-- branch : trunk
This commit is contained in:
@@ -168,25 +168,6 @@ ENDIF (CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
|||||||
|
|
||||||
add_definitions(--no-warnings) #to make build look nice, no gcc nazi warnings.
|
add_definitions(--no-warnings) #to make build look nice, no gcc nazi warnings.
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(
|
|
||||||
dep/include
|
|
||||||
dep/include/g3dlite
|
|
||||||
dep/include/sockets
|
|
||||||
src/shared
|
|
||||||
src/framework
|
|
||||||
src/shared/Database
|
|
||||||
src/shared/vmap
|
|
||||||
src/game
|
|
||||||
${CMAKE_BINARY_DIR}
|
|
||||||
${MYSQL_INCLUDE_DIR}
|
|
||||||
${POSTGRESQL_INCLUDE_DIR}
|
|
||||||
${POSTGRESQL_INCLUDE_DIR}/libpq-4/
|
|
||||||
${POSTGRESQL_INCLUDE_DIR}/libpq-4/server/
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/src/shared
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/..
|
|
||||||
${ACE_INCLUDE_DIR}
|
|
||||||
)
|
|
||||||
|
|
||||||
SET(CMAKE_SKIP_BUILD_RPATH FALSE)
|
SET(CMAKE_SKIP_BUILD_RPATH FALSE)
|
||||||
SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
||||||
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
|
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
|
||||||
|
|||||||
@@ -14,6 +14,10 @@ SET(g3dlite_STAT_SRCS
|
|||||||
Vector4.cpp
|
Vector4.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_SOURCE_DIR}/dep/include/g3dlite
|
||||||
|
)
|
||||||
|
|
||||||
add_library(g3dlite STATIC ${g3dlite_STAT_SRCS})
|
add_library(g3dlite STATIC ${g3dlite_STAT_SRCS})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,4 +19,8 @@ SET(trinitysockets_STAT_SRCS
|
|||||||
socket_include.cpp
|
socket_include.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_SOURCE_DIR}/dep/include/sockets
|
||||||
|
)
|
||||||
|
|
||||||
add_library(trinitysockets STATIC ${trinitysockets_STAT_SRCS})
|
add_library(trinitysockets STATIC ${trinitysockets_STAT_SRCS})
|
||||||
|
|||||||
@@ -2,7 +2,9 @@ SET(trinityframework_STAT_SRCS
|
|||||||
Policies/ObjectLifeTime.cpp
|
Policies/ObjectLifeTime.cpp
|
||||||
Utilities/EventProcessor.cpp
|
Utilities/EventProcessor.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_CURRENT_SRC_DIR}
|
${CMAKE_SOURCE_DIR}/src/framework
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(trinityframework STATIC ${trinityframework_STAT_SRCS})
|
add_library(trinityframework STATIC ${trinityframework_STAT_SRCS})
|
||||||
|
|||||||
@@ -309,6 +309,16 @@ SET(game_STAT_SRCS
|
|||||||
ZoneScript.h
|
ZoneScript.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/dep/include
|
||||||
|
${CMAKE_SOURCE_DIR}/src/framework
|
||||||
|
${CMAKE_SOURCE_DIR}/src/shared
|
||||||
|
${CMAKE_SOURCE_DIR}/src/shared/vmap
|
||||||
|
${CMAKE_SOURCE_DIR}/src/shared/Database
|
||||||
|
${MYSQL_INCLUDE_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
if(NOT DO_SCRIPTS)
|
if(NOT DO_SCRIPTS)
|
||||||
SET(game_STAT_SRCS ${game_STAT_SRCS}
|
SET(game_STAT_SRCS ${game_STAT_SRCS}
|
||||||
ScriptedEscortAI.cpp
|
ScriptedEscortAI.cpp
|
||||||
|
|||||||
@@ -562,5 +562,16 @@ SET(scripts_STAT_SRCS
|
|||||||
world/npc_taxi.cpp
|
world/npc_taxi.cpp
|
||||||
)
|
)
|
||||||
message("-- Added Script Engine to SCRIPTS lib")
|
message("-- Added Script Engine to SCRIPTS lib")
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/src/shared
|
||||||
|
${CMAKE_SOURCE_DIR}/src/framework
|
||||||
|
${CMAKE_SOURCE_DIR}/src/game
|
||||||
|
${CMAKE_SOURCE_DIR}/src/shared/Database
|
||||||
|
${CMAKE_SOURCE_DIR}/dep/include
|
||||||
|
${MYSQL_INCLUDE_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
add_library(scripts STATIC ${scripts_STAT_SRCS})
|
add_library(scripts STATIC ${scripts_STAT_SRCS})
|
||||||
|
|
||||||
|
|||||||
@@ -16,4 +16,11 @@ SET(trinityauth_STAT_SRCS
|
|||||||
SARC4.h
|
SARC4.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/src/shared
|
||||||
|
${CMAKE_SOURCE_DIR}/src/framework
|
||||||
|
${MYSQL_INCLUDE_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
add_library(trinityauth STATIC ${trinityauth_STAT_SRCS})
|
add_library(trinityauth STATIC ${trinityauth_STAT_SRCS})
|
||||||
|
|||||||
@@ -23,6 +23,16 @@ SET(shared_STAT_SRCS
|
|||||||
WorldPacket.h
|
WorldPacket.h
|
||||||
SystemConfig.h
|
SystemConfig.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/dep/include
|
||||||
|
${CMAKE_SOURCE_DIR}/dep/include/sockets
|
||||||
|
${CMAKE_SOURCE_DIR}/src/framework
|
||||||
|
${CMAKE_SOURCE_DIR}/src/shared
|
||||||
|
${MYSQL_INCLUDE_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
add_library(shared STATIC ${shared_STAT_SRCS})
|
add_library(shared STATIC ${shared_STAT_SRCS})
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
shared
|
shared
|
||||||
|
|||||||
@@ -11,5 +11,11 @@ SET(trinityconfig_STAT_SRCS
|
|||||||
ConfigEnv.h
|
ConfigEnv.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/src/shared
|
||||||
|
${CMAKE_SOURCE_DIR}/src/framework
|
||||||
|
)
|
||||||
|
|
||||||
add_library(trinityconfig STATIC ${trinityconfig_STAT_SRCS})
|
add_library(trinityconfig STATIC ${trinityconfig_STAT_SRCS})
|
||||||
|
|
||||||
|
|||||||
@@ -27,4 +27,12 @@ SET(trinitydatabase_STAT_SRCS
|
|||||||
SqlOperations.h
|
SqlOperations.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/src/shared
|
||||||
|
${CMAKE_SOURCE_DIR}/src/shared/Database
|
||||||
|
${CMAKE_SOURCE_DIR}/src/framework
|
||||||
|
${MYSQL_INCLUDE_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
add_library(trinitydatabase STATIC ${trinitydatabase_STAT_SRCS})
|
add_library(trinitydatabase STATIC ${trinitydatabase_STAT_SRCS})
|
||||||
|
|||||||
@@ -31,5 +31,9 @@ SET(vmaps_STAT_SRCS
|
|||||||
VMapTools.h
|
VMapTools.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_SOURCE_DIR}/dep/include/g3dlite
|
||||||
|
)
|
||||||
|
|
||||||
add_library(vmaps STATIC ${vmaps_STAT_SRCS})
|
add_library(vmaps STATIC ${vmaps_STAT_SRCS})
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,16 @@ WorldRunnable.cpp
|
|||||||
WorldRunnable.h
|
WorldRunnable.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/dep/include
|
||||||
|
${CMAKE_SOURCE_DIR}/src/shared
|
||||||
|
${CMAKE_SOURCE_DIR}/src/shared/Database
|
||||||
|
${CMAKE_SOURCE_DIR}/src/framework
|
||||||
|
${CMAKE_SOURCE_DIR}/src/game
|
||||||
|
${MYSQL_INCLUDE_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
SET(trinity-core_LINK_FLAGS "")
|
SET(trinity-core_LINK_FLAGS "")
|
||||||
|
|
||||||
add_executable(trinity-core ${trinity-core_SRCS})
|
add_executable(trinity-core ${trinity-core_SRCS})
|
||||||
|
|||||||
@@ -13,6 +13,14 @@ RealmSocket.cpp
|
|||||||
RealmAcceptor.h
|
RealmAcceptor.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/src/shared
|
||||||
|
${CMAKE_SOURCE_DIR}/src/shared/Database
|
||||||
|
${CMAKE_SOURCE_DIR}/src/framework
|
||||||
|
${MYSQL_INCLUDE_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
SET(trinity-realm_LINK_FLAGS "")
|
SET(trinity-realm_LINK_FLAGS "")
|
||||||
|
|
||||||
add_executable(trinity-realm ${trinity-realm_SRCS})
|
add_executable(trinity-realm ${trinity-realm_SRCS})
|
||||||
|
|||||||
Reference in New Issue
Block a user