8ed68ce4f3
* Restructured tests - support standalone compilation - move tests/kernel-tracing/serialization.hpp to tests/common/serialization.hpp - created tests/common library - handle cloning of cereal library in standalone build * Update install and packaging * Update cmake/rocprofiler_config_packaging.cmake - condense core, samples, development, and tools install components into single rocprofiler-sdk package - keep tests install component in separate rocprofiler-sdk-tests package * Update CI workflow to test install and packaging * Update CI workflow - install newer cmake for packaging checks * Update cmake/rocprofiler_config_packaging.cmake - disable auto-generation of shared-lib deps and provides for tests package * Update CI workflow - add sbin to PATH for dpkg install * Update CI workflow - remove using github.workspace when installing packages * Update CI workflow - hack to fix ordering of dpkg install * Update CI workflow - whitespace cleanup
27 строки
587 B
CMake
27 строки
587 B
CMake
#
|
|
#
|
|
#
|
|
cmake_minimum_required(VERSION 3.21.0 FATAL_ERROR)
|
|
|
|
project(rocprofiler-sdk-samples LANGUAGES C CXX)
|
|
|
|
set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME "samples")
|
|
if(CMAKE_BUILD_TYPE STREQUAL "")
|
|
set(CMAKE_BUILD_TYPE
|
|
"RelWithDebInfo"
|
|
CACHE STRING "Build type" FORCE)
|
|
endif()
|
|
|
|
enable_testing()
|
|
include(CTest)
|
|
|
|
# common utilities for samples
|
|
add_subdirectory(common)
|
|
|
|
# actual samples
|
|
add_subdirectory(api_callback_tracing)
|
|
add_subdirectory(api_buffered_tracing)
|
|
add_subdirectory(code_object_tracing)
|
|
add_subdirectory(counter_collection)
|
|
add_subdirectory(intercept_table)
|