fc712350ef
* Provide rocprofiler_register_iterate_registration_info function - stores the runtime arguments for later reference * Fix compilation error * Removed unused variable * Store api tables in vector * Update license * Replace global_mutex usage with scoped_count - in rocp_invoke_registrations * Formatting --------- Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
32 línte
996 B
CMake
32 línte
996 B
CMake
#
|
|
# mock rocprofiler library
|
|
#
|
|
|
|
find_package(rocprofiler-register REQUIRED)
|
|
if(TARGET rocprofiler-register::rocprofiler-register-headers)
|
|
get_property(
|
|
rocp_reg_INCLUDE_DIR
|
|
TARGET rocprofiler-register::rocprofiler-register-headers
|
|
PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
|
|
else()
|
|
get_property(
|
|
rocp_reg_INCLUDE_DIR
|
|
TARGET rocprofiler-register::rocprofiler-register
|
|
PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
|
|
endif()
|
|
|
|
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}>
|
|
$<BUILD_INTERFACE:${rocp_reg_INCLUDE_DIR}>)
|
|
set_target_properties(
|
|
rocprofiler
|
|
PROPERTIES OUTPUT_NAME rocprofiler-sdk
|
|
SOVERSION 0
|
|
VERSION 0.0.0)
|
|
rocp_register_strip_target(rocprofiler)
|