2017-11-14 15:14:43 +01:00
# Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
2024-05-29 21:10:39 +03:00
# Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE
2016-06-26 10:39:44 +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.
set ( Detour_STAT_SRCS
2017-11-14 15:14:43 +01:00
S o u r c e / D e t o u r A l l o c . c p p
2018-07-13 13:46:04 +02:00
S o u r c e / D e t o u r A s s e r t . c p p
2017-11-14 15:14:43 +01:00
S o u r c e / D e t o u r C o m m o n . c p p
S o u r c e / D e t o u r N a v M e s h . c p p
S o u r c e / D e t o u r N a v M e s h B u i l d e r . c p p
S o u r c e / D e t o u r N a v M e s h Q u e r y . c p p
S o u r c e / D e t o u r N o d e . c p p
2016-06-26 10:39:44 +02:00
)
if ( WIN32 )
include_directories (
2017-10-13 19:22:30 +02:00
$ { C M A K E _ S O U R C E _ D I R } / d e p s / z l i b
2016-06-26 10:39:44 +02:00
)
endif ( )
add_library ( Detour STATIC ${ Detour_STAT_SRCS } )
2017-11-14 15:14:43 +01:00
target_include_directories ( Detour
P U B L I C
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / I n c l u d e )
2019-04-02 03:41:08 +07:00
# Group sources
GroupSources ( ${ CMAKE_CURRENT_SOURCE_DIR } )
2017-11-14 15:14:43 +01:00
target_link_libraries ( Detour
2019-09-18 20:04:48 +07:00
P R I V A T E
a c o r e - d e p e n d e n c y - i n t e r f a c e
2017-11-14 15:14:43 +01:00
P U B L I C
z l i b )
set_target_properties ( Detour
P R O P E R T I E S
F O L D E R
2019-04-02 03:41:08 +07:00
" d e p s " )