[libxslt] Add CMake alias targets for embedded projects
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Add CMake alias targets for embedded projects
- Date: Sun, 6 Jun 2021 09:44:53 +0000 (UTC)
commit 96fcf13ed9c6ccc8b2dadba350927b6b199b54aa
Author: Markus Rickert <rickert fortiss org>
Date: Sat May 22 15:17:31 2021 +0200
Add CMake alias targets for embedded projects
CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 541cbc59..9e3a7303 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -217,6 +217,7 @@ set(
)
add_library(LibXslt ${LIBXSLT_HDRS} ${LIBXSLT_SRCS})
+add_library(LibXslt::LibXslt ALIAS LibXslt)
target_include_directories(
LibXslt
@@ -299,6 +300,7 @@ set(
)
add_library(LibExslt ${LIBEXSLT_HDRS} ${LIBEXSLT_SRCS})
+add_library(LibXslt::LibExslt ALIAS LibExslt)
target_include_directories(
LibExslt
@@ -359,6 +361,7 @@ if(MSVC AND BUILD_SHARED_LIBS)
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]