From 1eb49984efce31a826528f8813d8b383ccc700db Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Fri, 16 Aug 2024 14:22:07 +0200 Subject: [PATCH] Proper installation rules --- source/CMakeLists.txt | 19 ++++--------------- source/drivers/null/CMakeLists.txt | 16 ++++------------ source/layers/tracing/CMakeLists.txt | 20 ++++---------------- source/layers/validation/CMakeLists.txt | 19 ++++--------------- 4 files changed, 16 insertions(+), 58 deletions(-) diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 5ef252c..c9d05dd 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -49,21 +49,10 @@ endif() target_link_libraries(${TARGET_LOADER_NAME} utils) install(TARGETS ze_loader - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} - LIBRARY - DESTINATION ${CMAKE_INSTALL_LIBDIR} - COMPONENT level-zero - NAMELINK_SKIP -) - -install(TARGETS ze_loader - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} - LIBRARY - DESTINATION ${CMAKE_INSTALL_LIBDIR} - COMPONENT level-zero-devel - NAMELINK_ONLY + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT level-zero-devel + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT level-zero + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT level-zero + NAMELINK_COMPONENT level-zero-devel ) if(UNIX) diff --git a/source/drivers/null/CMakeLists.txt b/source/drivers/null/CMakeLists.txt index b384434..0cb8801 100644 --- a/source/drivers/null/CMakeLists.txt +++ b/source/drivers/null/CMakeLists.txt @@ -21,18 +21,10 @@ target_include_directories(${TARGET_NAME} if(INSTALL_NULL_DRIVER) install(TARGETS ze_null - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY - DESTINATION ${CMAKE_INSTALL_LIBDIR} - COMPONENT level-zero - NAMELINK_SKIP - ) - install(TARGETS ze_null - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY - DESTINATION ${CMAKE_INSTALL_LIBDIR} - COMPONENT level-zero-devel - NAMELINK_ONLY + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT level-zero-devel + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT level-zero + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT level-zero + NAMELINK_COMPONENT level-zero-devel ) endif() diff --git a/source/layers/tracing/CMakeLists.txt b/source/layers/tracing/CMakeLists.txt index 1dde028..63e0b20 100644 --- a/source/layers/tracing/CMakeLists.txt +++ b/source/layers/tracing/CMakeLists.txt @@ -49,20 +49,8 @@ set_target_properties(${TARGET_NAME} PROPERTIES ) install(TARGETS ze_tracing_layer - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY - DESTINATION ${CMAKE_INSTALL_LIBDIR} - COMPONENT level-zero - NAMELINK_SKIP + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT level-zero-devel + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT level-zero + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT level-zero + NAMELINK_COMPONENT level-zero-devel ) - -install(TARGETS ze_tracing_layer - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY - DESTINATION ${CMAKE_INSTALL_LIBDIR} - COMPONENT level-zero-devel - NAMELINK_ONLY -) - diff --git a/source/layers/validation/CMakeLists.txt b/source/layers/validation/CMakeLists.txt index 3a4162c..a98d4ed 100644 --- a/source/layers/validation/CMakeLists.txt +++ b/source/layers/validation/CMakeLists.txt @@ -37,21 +37,10 @@ set_target_properties(${TARGET_NAME} PROPERTIES ) install(TARGETS ze_validation_layer - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY - DESTINATION ${CMAKE_INSTALL_LIBDIR} - COMPONENT level-zero - NAMELINK_SKIP -) - -install(TARGETS ze_validation_layer - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY - DESTINATION ${CMAKE_INSTALL_LIBDIR} - COMPONENT level-zero-devel - NAMELINK_ONLY + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT level-zero-devel + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT level-zero + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT level-zero + NAMELINK_COMPONENT level-zero-devel ) add_subdirectory(handle_lifetime_tracking)