ab02cb6570
* Fix support for version in find_package(rocprofiler-register <version>) * Update lib/rocprofiler-register/rocprofiler-register.cpp - change rocprofiler library name to librocprofiler-sdk.so - add helper function rocp_load_rocprofiler_lib for dlopen of rocprofiler library - support ROCP_TOOL_LIBRARIES environment variable - reworked rocprofiler_register_error_string * Update tests/rocprofiler - rename library to librocprofiler-sdk - remove rocprofiler_configure within librocprofiler-sdk.so * Add tests/generic-tool - provides implementation of rocprofiler_configure * Update tests/CMakeLists.txt - use libgeneric-tool.so - LD_PRELOAD libgeneric-tool.so instead of librocprofiler - Add tests which use ROCP_TOOL_LIBRARIES * Update tests/generic-tool/generic-tool.cpp - include <cstdint>
15 regels
531 B
CMake
15 regels
531 B
CMake
#
|
|
# mock rocprofiler library
|
|
#
|
|
add_library(rocprofiler SHARED)
|
|
add_library(rocprofiler::rocprofiler ALIAS rocprofiler)
|
|
target_sources(rocprofiler PRIVATE rocprofiler.cpp)
|
|
target_include_directories(rocprofiler PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
|
|
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>)
|
|
set_target_properties(
|
|
rocprofiler
|
|
PROPERTIES OUTPUT_NAME rocprofiler-sdk
|
|
SOVERSION 0
|
|
VERSION 0.0.0)
|
|
rocp_register_strip_target(rocprofiler)
|