Skip to content

Commit

Permalink
Proper installation rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov authored and lisanna-dettwyler committed Aug 29, 2024
1 parent 9cf1a74 commit 1eb4998
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 58 deletions.
19 changes: 4 additions & 15 deletions source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
16 changes: 4 additions & 12 deletions source/drivers/null/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
20 changes: 4 additions & 16 deletions source/layers/tracing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

19 changes: 4 additions & 15 deletions source/layers/validation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1eb4998

Please sign in to comment.