fa4295db6b
* Initial Implementation: include * Initial Implementation: lib details (#11) * Initial Implementation: lib details * Initial Implementation: lib (#12) * Initial Implementation: lib * Initial Implementation: source (#13) * Initial Implementation: source * Initial Implementation: samples (#14) * Initial Implementation: samples * Initial Implementation: tests (#15) * Initial Implementation: tests * Initial Implementation: scripts (#16) * Initial Implementation: scripts * Initial Implementation: cmake (#17) * Initial Implementation: cmake * Initial Implementation: top-level files (#18) * Initial Implementation: top-level files - clang-format - clang-tidy - cmake-format - ignore build and cache directories - main CMakeLists.txt - pyproject.toml (python formatting) - VERSION file * Initial Implementation: workflow (#19) * Fix unused variable - rocprofiler_register_warn_level
36 wiersze
1.3 KiB
CMake
36 wiersze
1.3 KiB
CMake
#
|
|
#
|
|
#
|
|
|
|
if(NOT TARGET rocprofiler-register::rocprofiler-register)
|
|
# find_package(rocprofiler-register REQUIRED)
|
|
endif()
|
|
|
|
add_library(hsa-runtime SHARED)
|
|
add_library(hsa-runtime::hsa-runtime ALIAS hsa-runtime)
|
|
target_sources(hsa-runtime PRIVATE hsa-runtime.cpp hsa-runtime.hpp)
|
|
target_include_directories(hsa-runtime
|
|
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>)
|
|
target_link_libraries(hsa-runtime PRIVATE rocprofiler-register::rocprofiler-register)
|
|
set_target_properties(
|
|
hsa-runtime
|
|
PROPERTIES OUTPUT_NAME hsa-runtime64
|
|
SOVERSION 2
|
|
VERSION 2.1.0)
|
|
rocp_register_strip_target(hsa-runtime)
|
|
|
|
add_library(hsa-runtime-invalid SHARED)
|
|
add_library(hsa-runtime::hsa-runtime-invalid ALIAS hsa-runtime-invalid)
|
|
target_sources(hsa-runtime-invalid PRIVATE hsa-runtime.cpp hsa-runtime.hpp)
|
|
target_include_directories(hsa-runtime-invalid
|
|
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>)
|
|
target_link_libraries(hsa-runtime-invalid
|
|
PRIVATE rocprofiler-register::rocprofiler-register)
|
|
set_target_properties(
|
|
hsa-runtime-invalid
|
|
PROPERTIES OUTPUT_NAME hsa-runtime64
|
|
SOVERSION 1
|
|
VERSION 1.2.3
|
|
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/invalid)
|
|
rocp_register_strip_target(hsa-runtime-invalid)
|