Files
ForeverCore/tests/tools/CMakeLists.txt
T
Karrz1 ff699fb5cf Sync with WoW Forever 0.1.34: Blizzlike core
Brings forever up to date with our 0.1.34 code for the WoW Forever client 1.60.1.70862.
Blizzlike only: fixes from real game data (packet captures, live hotfixes, player caches, Wowhead and Questie data,
VMaNGOS for the vanilla world) and server fixes. No custom items or custom content; every rate and option defaults
to Blizzard's behaviour.

What is new since 2ae1313e, in short:
- Clients 70790, 70840 and 70862: message numbers, mail, guild window, charters, contact list, add-on whispers.
- Crash and exploit fixes: guild ranks, loot of emptied veins, quest lookups, taxi mask, battleground templates,
  vendor free buys, item sell price, auction house, falling out of the world, bnetserver request limit.
- Classes, talents, pets and buffs from the live game data and Blizzard's hotfixes of November.
- Quests, NPCs, spawns, trainers, loot, fishing, events, Merchant's Favor crates and writs, sealed crate turn-ins.
- Dungeon and raid scripts (Molten Core, Blackwing Lair, Zul'Gurub, Ahn'Qiraj, Shadowfang Keep, Deadmines ...).
- Pathing fixes that help pets and NPCs.
- Russian creature names, quest titles and quest texts.
- README: Blizzlike stance, branches, repack.
2026-11-09 17:27:57 +00:00

73 lines
2.3 KiB
CMake

# This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
#
# 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.
# Standalone test executable for tools-layer code (map_extractor,
# vmap4_extractor, mmaps_generator). Separated from the main `tests` target
# so that pre-existing breakage in tests/game/ doesn't block tooling unit
# tests from linking.
#
# Catch2 v3: the main function comes from Catch2::Catch2WithMain.
add_executable(tools_tests)
target_sources(tools_tests
PRIVATE
RoadClassifier.cpp
RoadValidation.cpp
AdtTextureReader.cpp
RoadMapFile.cpp
RoadFileWriter.cpp
RoadCorridor.cpp
ListfileMap.cpp
WmoRoadClassifier.cpp
dtQueryFilterTC.cpp
# The source-under-test lives in src/server/game/Movement/ — linked
# directly here rather than via game.lib so the Catch2 tests don't
# need the whole TC runtime.
${CMAKE_SOURCE_DIR}/src/server/game/Movement/dtQueryFilterTC.cpp)
# Detour is required by dtQueryFilterTC; include + link it.
target_include_directories(tools_tests
PRIVATE
${CMAKE_SOURCE_DIR}/src/server/game/Movement
${CMAKE_SOURCE_DIR}/dep/recastnavigation/Detour/Include)
target_link_libraries(tools_tests
PRIVATE
Detour)
# RoadMapFile.cpp pulls in RoadMapDefines.h from common, and
# MMapDefines.h for the NAV_AREA_ROAD invariant tests.
target_include_directories(tools_tests
PRIVATE
${CMAKE_SOURCE_DIR}/src/common/Collision/Maps
${CMAKE_SOURCE_DIR}/src/common/mmaps_common)
target_link_libraries(tools_tests
PRIVATE
common
mmaps_common)
target_link_libraries(tools_tests
PRIVATE
trinity-core-interface
common
extractor_common
Catch2::Catch2WithMain)
target_include_directories(tools_tests
PRIVATE
${CMAKE_SOURCE_DIR}/src/tools/extractor_common
${CMAKE_SOURCE_DIR}/tests)
set_target_properties(tools_tests
PROPERTIES
FOLDER "tests")
catch_discover_tests(tools_tests DISCOVERY_MODE PRE_TEST)