mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
94 lines
3.1 KiB
CMake
94 lines
3.1 KiB
CMake
# Copyright (C)
|
|
#
|
|
# 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.
|
|
|
|
if( USE_COREPCH )
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
endif()
|
|
|
|
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)
|
|
|
|
if (USE_COREPCH)
|
|
set(collision_STAT_PCH_HDR PrecompiledHeaders/collisionPCH.h)
|
|
set(collision_STAT_PCH_SRC PrecompiledHeaders/collisionPCH.cpp)
|
|
endif ()
|
|
|
|
set(collision_STAT_SRCS
|
|
${collision_STAT_SRCS}
|
|
${sources_Management}
|
|
${sources_Maps}
|
|
${sources_Models}
|
|
${sources_localdir}
|
|
)
|
|
|
|
include_directories(
|
|
${CMAKE_BINARY_DIR}
|
|
${CMAKE_SOURCE_DIR}/deps/g3dlite/include
|
|
${CMAKE_SOURCE_DIR}/deps/recastnavigation/Detour
|
|
${CMAKE_SOURCE_DIR}/src/core/
|
|
${CMAKE_SOURCE_DIR}/src/core/Configuration
|
|
${CMAKE_SOURCE_DIR}/src/core/Debugging
|
|
${CMAKE_SOURCE_DIR}/src/core/Database
|
|
${CMAKE_SOURCE_DIR}/src/core/Debugging
|
|
${CMAKE_SOURCE_DIR}/src/core/Dynamic
|
|
${CMAKE_SOURCE_DIR}/src/core/Dynamic/LinkedReference
|
|
${CMAKE_SOURCE_DIR}/src/core/Logging
|
|
${CMAKE_SOURCE_DIR}/src/core/Threading
|
|
${CMAKE_SOURCE_DIR}/src/core/Packets
|
|
${CMAKE_SOURCE_DIR}/src/core/Utilities
|
|
${CMAKE_SOURCE_DIR}/src/core/DataStores
|
|
${CMAKE_SOURCE_DIR}/src/framework/Addons
|
|
${CMAKE_SOURCE_DIR}/src/game/Conditions
|
|
${CMAKE_SOURCE_DIR}/src/game/Entities/Item
|
|
${CMAKE_SOURCE_DIR}/src/game/Entities/GameObject
|
|
${CMAKE_SOURCE_DIR}/src/game/Entities/Creature
|
|
${CMAKE_SOURCE_DIR}/src/game/Entities/Object
|
|
${CMAKE_SOURCE_DIR}/src/game/Entities/Object/Updates
|
|
${CMAKE_SOURCE_DIR}/src/game/Entities/Unit
|
|
${CMAKE_SOURCE_DIR}/src/game/Combat
|
|
${CMAKE_SOURCE_DIR}/src/game/Loot
|
|
${CMAKE_SOURCE_DIR}/src/game/Miscellaneous
|
|
${CMAKE_SOURCE_DIR}/src/game/Grids
|
|
${CMAKE_SOURCE_DIR}/src/game/Grids/Cells
|
|
${CMAKE_SOURCE_DIR}/src/game/Grids/Notifiers
|
|
${CMAKE_SOURCE_DIR}/src/game/Maps
|
|
${CMAKE_SOURCE_DIR}/src/game/DataStores
|
|
${CMAKE_SOURCE_DIR}/src/game/Movement/Waypoints
|
|
${CMAKE_SOURCE_DIR}/src/game/Movement/Spline
|
|
${CMAKE_SOURCE_DIR}/src/game/Movement
|
|
${CMAKE_SOURCE_DIR}/src/game/Server
|
|
${CMAKE_SOURCE_DIR}/src/game/Server/Protocol
|
|
${CMAKE_SOURCE_DIR}/src/game/World
|
|
${CMAKE_SOURCE_DIR}/src/game/Spells
|
|
${CMAKE_SOURCE_DIR}/src/game/Spells/Auras
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Management
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Maps
|
|
${CMAKE_CURRENT_SOURCE_DIR}/Models
|
|
${ACE_INCLUDE_DIR}
|
|
${MYSQL_INCLUDE_DIR}
|
|
)
|
|
|
|
add_library(collision STATIC
|
|
${collision_STAT_SRCS}
|
|
${collision_STAT_PCH_SRC}
|
|
)
|
|
|
|
target_link_libraries(collision
|
|
shared
|
|
)
|
|
|
|
# Generate precompiled header
|
|
if (USE_COREPCH)
|
|
add_cxx_pch(collision ${collision_STAT_PCH_HDR} ${collision_STAT_PCH_SRC})
|
|
endif ()
|