Eluna fix TC build

This commit is contained in:
Rochet2
2014-10-02 21:50:35 +03:00
parent 644200fa50
commit 95b103d285

View File

@@ -25,7 +25,13 @@ include_directories(
${OPENSSL_INCLUDE_DIR} ${OPENSSL_INCLUDE_DIR}
) )
if(${CMAKE_PROJECT_NAME} STREQUAL "Trinity") add_library(LuaEngine STATIC
${LuaEngine_STAT_SRCS}
${game_STAT_SRCS}
${game_STAT_PCH_SRC}
)
if( ${CMAKE_PROJECT_NAME} STREQUAL "TrinityCore" )
include_directories( include_directories(
${CMAKE_SOURCE_DIR}/dep/recastnavigation/Detour ${CMAKE_SOURCE_DIR}/dep/recastnavigation/Detour
${CMAKE_SOURCE_DIR}/dep/recastnavigation/Detour/Include ${CMAKE_SOURCE_DIR}/dep/recastnavigation/Detour/Include
@@ -136,28 +142,22 @@ if(${CMAKE_PROJECT_NAME} STREQUAL "Trinity")
) )
add_dependencies(LuaEngine game) add_dependencies(LuaEngine game)
elseif(${CMAKE_PROJECT_NAME} STREQUAL "MaNGOS") elseif( ${CMAKE_PROJECT_NAME} STREQUAL "MaNGOS" )
include_directories( include_directories(
${CMAKE_SOURCE_DIR}/src/shared ${CMAKE_SOURCE_DIR}/src/shared
${CMAKE_SOURCE_DIR}/src/framework ${CMAKE_SOURCE_DIR}/src/framework
${CMAKE_SOURCE_DIR}/src/framework/Platform ${CMAKE_SOURCE_DIR}/src/framework/Platform
${CMAKE_SOURCE_DIR}/src/game/BattleGround ${CMAKE_SOURCE_DIR}/src/game/BattleGround
${CMAKE_SOURCE_DIR}/src/game/Server ${CMAKE_SOURCE_DIR}/src/game/Server
${CMAKE_SOURCE_DIR}/src/game/vmap ${CMAKE_SOURCE_DIR}/src/game/vmap
${CMAKE_SOURCE_DIR}/src/game/MotionGenerators ${CMAKE_SOURCE_DIR}/src/game/MotionGenerators
${CMAKE_SOURCE_DIR}/src/game/Tools ${CMAKE_SOURCE_DIR}/src/game/Tools
${CMAKE_SOURCE_DIR}/src/game/References ${CMAKE_SOURCE_DIR}/src/game/References
${CMAKE_SOURCE_DIR}/src/game/WorldHandlers ${CMAKE_SOURCE_DIR}/src/game/WorldHandlers
${CMAKE_SOURCE_DIR}/src/game/Object ${CMAKE_SOURCE_DIR}/src/game/Object
) )
endif() endif()
add_library(LuaEngine STATIC
${LuaEngine_STAT_SRCS}
${game_STAT_SRCS}
${game_STAT_PCH_SRC}
)
#if( WIN32 ) #if( WIN32 )
# if ( MSVC ) # if ( MSVC )
# add_custom_command(TARGET LuaEngine # add_custom_command(TARGET LuaEngine