# HG changeset patch
# User Markus Rickert <rickert@fortiss.org>
# Date 1621689451 -7200
#      Sat May 22 15:17:31 2021 +0200
# Node ID 562e54724728334f3682fd276eb29f3386f0418f
# Parent  2bb3eedaf2ac6e150fedcc536d9accd5df68bd58
Add CMake alias targets for embedded projects

diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -217,6 +217,7 @@
 )
 
 add_library(LibXslt ${LIBXSLT_HDRS} ${LIBXSLT_SRCS})
+add_library(LibXslt::LibXslt ALIAS LibXslt)
 
 target_include_directories(
 	LibXslt
@@ -299,6 +300,7 @@
 )
 
 add_library(LibExslt ${LIBEXSLT_HDRS} ${LIBEXSLT_SRCS})
+add_library(LibXslt::LibExslt ALIAS LibExslt)
 
 target_include_directories(
 	LibExslt
@@ -359,6 +361,7 @@
 endif()
 
 add_executable(xsltproc xsltproc/xsltproc.c)
+add_executable(LibXslt::xsltproc ALIAS xsltproc)
 target_include_directories(xsltproc PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
 target_link_libraries(xsltproc LibExslt LibXslt)
 install(TARGETS xsltproc EXPORT LibXslt RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT programs)