8fcf3a50b0
* Replace `cmake-format` with `gersemi`
Signed-off-by: David Galiffi <David.Galiffi@amd.com>
* Remove .cmake-format.yaml
Signed-off-by: David Galiffi <David.Galiffi@amd.com>
* Update workflow to use gersemi
Signed-off-by: David Galiffi <David.Galiffi@amd.com>
* Update CONTRIBUTING.md
* Update helper scripts
* Don't include `*/external/*` in workflows
---------
Signed-off-by: David Galiffi <David.Galiffi@amd.com>
[ROCm/rocprofiler-systems commit: 122623a929]
36 lines
1.3 KiB
CMake
36 lines
1.3 KiB
CMake
# ------------------------------------------------------------------------------#
|
|
#
|
|
# rocprofiler-systems-run target
|
|
#
|
|
# ------------------------------------------------------------------------------#
|
|
|
|
add_executable(
|
|
rocprofiler-systems-run
|
|
${CMAKE_CURRENT_LIST_DIR}/rocprof-sys-run.cpp
|
|
${CMAKE_CURRENT_LIST_DIR}/rocprof-sys-run.hpp
|
|
${CMAKE_CURRENT_LIST_DIR}/impl.cpp
|
|
)
|
|
|
|
target_compile_definitions(rocprofiler-systems-run PRIVATE TIMEMORY_CMAKE=1)
|
|
target_include_directories(rocprofiler-systems-run PRIVATE ${CMAKE_CURRENT_LIST_DIR})
|
|
target_link_libraries(
|
|
rocprofiler-systems-run
|
|
PRIVATE
|
|
rocprofiler-systems::rocprofiler-systems-compile-definitions
|
|
rocprofiler-systems::rocprofiler-systems-headers
|
|
rocprofiler-systems::rocprofiler-systems-common-library
|
|
rocprofiler-systems::rocprofiler-systems-core
|
|
rocprofiler-systems::rocprofiler-systems-sanitizer
|
|
)
|
|
set_target_properties(
|
|
rocprofiler-systems-run
|
|
PROPERTIES
|
|
BUILD_RPATH "\$ORIGIN:\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}"
|
|
INSTALL_RPATH "${ROCPROFSYS_EXE_INSTALL_RPATH}"
|
|
OUTPUT_NAME ${BINARY_NAME_PREFIX}-run
|
|
)
|
|
|
|
rocprofiler_systems_strip_target(rocprofiler-systems-run)
|
|
|
|
install(TARGETS rocprofiler-systems-run DESTINATION ${CMAKE_INSTALL_BINDIR} OPTIONAL)
|