aboutsummaryrefslogtreecommitdiff
path: root/dep/recastnavigation/Detour/CMakeLists.txt
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-11-12 22:53:54 +0100
committerShauren <shauren.trinity@gmail.com>2025-11-12 22:53:54 +0100
commit33316999060dda030c3c6a43a68d84020928ce70 (patch)
treed0ecb2d0ff3eaa11c27b6811c7de0eb4115b1fce /dep/recastnavigation/Detour/CMakeLists.txt
parent7ccc2d4f6b972800f96f1631da1ff52542710d72 (diff)
Build: Modernize include directory management using target_sources(FILE_SET)HEADmaster
Diffstat (limited to 'dep/recastnavigation/Detour/CMakeLists.txt')
-rw-r--r--dep/recastnavigation/Detour/CMakeLists.txt29
1 files changed, 19 insertions, 10 deletions
diff --git a/dep/recastnavigation/Detour/CMakeLists.txt b/dep/recastnavigation/Detour/CMakeLists.txt
index 4ea573681f7..7e0fabb41af 100644
--- a/dep/recastnavigation/Detour/CMakeLists.txt
+++ b/dep/recastnavigation/Detour/CMakeLists.txt
@@ -8,27 +8,36 @@
# 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
+add_library(Detour STATIC)
+
+target_sources(Detour
+ PRIVATE
Source/DetourAlloc.cpp
Source/DetourAssert.cpp
Source/DetourCommon.cpp
Source/DetourNavMesh.cpp
Source/DetourNavMeshBuilder.cpp
Source/DetourNavMeshQuery.cpp
- Source/DetourNode.cpp
-)
+ Source/DetourNode.cpp)
-add_library(Detour STATIC ${Detour_STAT_SRCS})
-
-target_include_directories(Detour
+target_sources(Detour
PUBLIC
- ${CMAKE_CURRENT_SOURCE_DIR}/Include)
+ FILE_SET HEADERS
+ BASE_DIRS Include
+ FILES
+ Include/DetourAlloc.h
+ Include/DetourAssert.h
+ Include/DetourCommon.h
+ Include/DetourMath.h
+ Include/DetourNavMeshBuilder.h
+ Include/DetourNavMesh.h
+ Include/DetourNavMeshQuery.h
+ Include/DetourNode.h
+ Include/DetourStatus.h)
target_link_libraries(Detour
PRIVATE
- trinity-dependency-interface
- PUBLIC
- zlib)
+ trinity-dependency-interface)
set_target_properties(Detour
PROPERTIES