From 7bfd9a1d4caccf61e0485b2b05b29966348a8b39 Mon Sep 17 00:00:00 2001 From: elsid Date: Thu, 1 Nov 2018 00:16:19 +0300 Subject: [PATCH] Add aliases with namespace for library build targets --- DebugUtils/CMakeLists.txt | 2 ++ Detour/CMakeLists.txt | 2 ++ DetourCrowd/CMakeLists.txt | 2 ++ DetourTileCache/CMakeLists.txt | 2 ++ Recast/CMakeLists.txt | 2 ++ 5 files changed, 10 insertions(+) diff --git a/DebugUtils/CMakeLists.txt b/DebugUtils/CMakeLists.txt index b094e4a..8b6a3fc 100644 --- a/DebugUtils/CMakeLists.txt +++ b/DebugUtils/CMakeLists.txt @@ -6,6 +6,8 @@ else() add_library(DebugUtils SHARED ${SOURCES}) endif() +add_library(RecastNavigation::DebugUtils ALIAS DebugUtils) + set(DebugUtils_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Include") target_include_directories(DebugUtils PUBLIC diff --git a/Detour/CMakeLists.txt b/Detour/CMakeLists.txt index fedf468..de88111 100644 --- a/Detour/CMakeLists.txt +++ b/Detour/CMakeLists.txt @@ -6,6 +6,8 @@ else() add_library(Detour SHARED ${SOURCES}) endif() +add_library(RecastNavigation::Detour ALIAS Detour) + set(Detour_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Include") target_include_directories(Detour PUBLIC diff --git a/DetourCrowd/CMakeLists.txt b/DetourCrowd/CMakeLists.txt index a321d34..73cdf7c 100644 --- a/DetourCrowd/CMakeLists.txt +++ b/DetourCrowd/CMakeLists.txt @@ -6,6 +6,8 @@ else () add_library(DetourCrowd SHARED ${SOURCES}) endif () +add_library(RecastNavigation::DetourCrowd ALIAS DetourCrowd) + set(DetourCrowd_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Include") target_include_directories(DetourCrowd PUBLIC diff --git a/DetourTileCache/CMakeLists.txt b/DetourTileCache/CMakeLists.txt index 12a99a7..121b8ed 100644 --- a/DetourTileCache/CMakeLists.txt +++ b/DetourTileCache/CMakeLists.txt @@ -6,6 +6,8 @@ else () add_library(DetourTileCache SHARED ${SOURCES}) endif () +add_library(RecastNavigation::DetourTileCache ALIAS DetourTileCache) + set(DetourTileCache_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Include") target_include_directories(DetourTileCache PUBLIC diff --git a/Recast/CMakeLists.txt b/Recast/CMakeLists.txt index 6400576..5e84376 100644 --- a/Recast/CMakeLists.txt +++ b/Recast/CMakeLists.txt @@ -6,6 +6,8 @@ else () add_library(Recast SHARED ${SOURCES}) endif () +add_library(RecastNavigation::Recast ALIAS Recast) + set(Recast_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Include") target_include_directories(Recast PUBLIC