2010-06-21 07:17:26 +02:00
|
|
|
# Copyright (C) 2008-2010 Trinity <http://www.trinitycore.org/>
|
2010-06-09 15:39:34 +02:00
|
|
|
#
|
|
|
|
|
# This file is free software; as a special exception the author gives
|
|
|
|
|
# unlimited permission to copy and/or distribute it, with or without
|
|
|
|
|
# modifications, as long as this notice is preserved.
|
|
|
|
|
#
|
|
|
|
|
# This program is distributed in the hope that it will be useful, but
|
|
|
|
|
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
|
|
|
|
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
2010-06-07 13:57:34 +02:00
|
|
|
|
2010-08-16 12:14:10 +02:00
|
|
|
if( GAMEPCH )
|
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
endif()
|
|
|
|
|
|
2010-08-08 04:08:18 +02:00
|
|
|
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)
|
2010-06-07 13:57:34 +02:00
|
|
|
|
2010-08-16 12:14:10 +02:00
|
|
|
if( GAMEPCH AND MSVC )
|
|
|
|
|
set(collision_STAT_SRCS
|
|
|
|
|
PrecompiledHeaders/collisionPCH.cpp
|
|
|
|
|
PrecompiledHeaders/collisionPCH.h
|
|
|
|
|
)
|
|
|
|
|
endif()
|
|
|
|
|
|
2010-06-21 07:17:26 +02:00
|
|
|
set(collision_STAT_SRCS
|
2010-08-16 12:14:10 +02:00
|
|
|
${collision_STAT_SRCS}
|
2010-08-08 04:08:18 +02:00
|
|
|
${sources_Management}
|
|
|
|
|
${sources_Maps}
|
|
|
|
|
${sources_Models}
|
|
|
|
|
${sources_localdir}
|
2010-06-07 13:57:34 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
include_directories(
|
2010-06-07 16:21:52 -06:00
|
|
|
${CMAKE_SOURCE_DIR}/externals/g3dlite
|
2010-06-08 01:20:06 +02:00
|
|
|
${CMAKE_SOURCE_DIR}/src/server/shared
|
2010-06-19 11:14:00 -06:00
|
|
|
${CMAKE_SOURCE_DIR}/src/server/shared/Debugging
|
2010-06-08 01:20:06 +02:00
|
|
|
${CMAKE_SOURCE_DIR}/src/server/shared/Dynamic
|
2010-06-19 11:14:00 -06:00
|
|
|
${CMAKE_SOURCE_DIR}/src/server/shared/Logging
|
2010-06-08 01:20:06 +02:00
|
|
|
${CMAKE_SOURCE_DIR}/src/server/collision
|
2010-06-07 18:32:20 -06:00
|
|
|
${CMAKE_SOURCE_DIR}/src/server/collision/Management
|
2010-06-08 01:20:06 +02:00
|
|
|
${CMAKE_SOURCE_DIR}/src/server/collision/Maps
|
2010-06-07 18:32:20 -06:00
|
|
|
${CMAKE_SOURCE_DIR}/src/server/collision/Models
|
2010-06-15 19:16:25 +02:00
|
|
|
${CMAKE_BINARY_DIR}
|
2010-08-16 09:51:37 +02:00
|
|
|
${ACE_INCLUDE_DIR}
|
|
|
|
|
${MYSQL_INCLUDE_DIR}
|
|
|
|
|
${OPENSSL_INCLUDE_DIR}
|
2010-06-07 13:57:34 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
add_library(collision STATIC ${collision_STAT_SRCS})
|
2010-08-16 12:14:10 +02:00
|
|
|
|
|
|
|
|
# Generate precompiled header
|
|
|
|
|
if( GAMEPCH )
|
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
|
|
|
|
add_precompiled_header(collision ${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders/collisionPCH.h)
|
|
|
|
|
elseif(MSVC)
|
|
|
|
|
add_native_precompiled_header(collision ${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders/collisionPCH)
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
|