2023-08-30 11:34:03 -05:00
|
|
|
#
|
|
|
|
|
# Builds common utilities into a static library
|
|
|
|
|
#
|
2023-09-21 14:35:20 -05:00
|
|
|
rocprofiler_activate_clang_tidy()
|
|
|
|
|
|
2024-07-11 20:22:26 -05:00
|
|
|
set(common_sources demangle.cpp elf_utils.cpp environment.cpp logging.cpp
|
2024-07-17 01:07:49 -05:00
|
|
|
static_object.cpp string_entry.cpp utility.cpp)
|
2023-11-13 22:30:15 -06:00
|
|
|
set(common_headers
|
2024-07-08 17:12:53 -05:00
|
|
|
abi.hpp
|
2023-11-13 22:30:15 -06:00
|
|
|
defines.hpp
|
|
|
|
|
demangle.hpp
|
2024-07-11 20:22:26 -05:00
|
|
|
elf_utils.hpp
|
|
|
|
|
environment.hpp
|
|
|
|
|
filesystem.hpp
|
2024-01-17 00:28:20 -06:00
|
|
|
logging.hpp
|
2023-11-13 22:30:15 -06:00
|
|
|
mpl.hpp
|
|
|
|
|
scope_destructor.hpp
|
2023-12-19 13:47:21 -06:00
|
|
|
static_object.hpp
|
2024-09-13 17:10:35 -05:00
|
|
|
static_tl_object.hpp
|
2024-07-17 01:07:49 -05:00
|
|
|
string_entry.hpp
|
2024-03-01 01:46:07 -06:00
|
|
|
stringize_arg.hpp
|
2023-11-13 22:30:15 -06:00
|
|
|
synchronized.hpp
|
2024-07-11 20:22:26 -05:00
|
|
|
units.hpp
|
2024-07-12 16:20:33 -07:00
|
|
|
utility.hpp)
|
2023-08-08 18:39:01 -05:00
|
|
|
|
2024-10-25 11:17:34 -05:00
|
|
|
add_library(rocprofiler-sdk-common-library STATIC)
|
|
|
|
|
add_library(rocprofiler-sdk::rocprofiler-sdk-common-library ALIAS
|
|
|
|
|
rocprofiler-sdk-common-library)
|
2023-08-08 18:39:01 -05:00
|
|
|
|
|
|
|
|
add_subdirectory(container)
|
2023-11-13 22:30:15 -06:00
|
|
|
add_subdirectory(memory)
|
2023-08-08 18:39:01 -05:00
|
|
|
|
2024-10-25 11:17:34 -05:00
|
|
|
target_sources(rocprofiler-sdk-common-library PRIVATE ${common_sources} ${common_headers})
|
|
|
|
|
target_include_directories(rocprofiler-sdk-common-library
|
2023-08-08 18:39:01 -05:00
|
|
|
PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/source>)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(
|
2024-10-25 11:17:34 -05:00
|
|
|
rocprofiler-sdk-common-library
|
|
|
|
|
PUBLIC $<BUILD_INTERFACE:rocprofiler-sdk::rocprofiler-sdk-headers>
|
|
|
|
|
$<BUILD_INTERFACE:rocprofiler-sdk::rocprofiler-sdk-build-flags>
|
|
|
|
|
$<BUILD_INTERFACE:rocprofiler-sdk::rocprofiler-sdk-threading>
|
|
|
|
|
$<BUILD_INTERFACE:rocprofiler-sdk::rocprofiler-sdk-memcheck>
|
|
|
|
|
$<BUILD_INTERFACE:rocprofiler-sdk::rocprofiler-sdk-cxx-filesystem>
|
|
|
|
|
$<BUILD_INTERFACE:rocprofiler-sdk::rocprofiler-sdk-glog>
|
|
|
|
|
$<BUILD_INTERFACE:rocprofiler-sdk::rocprofiler-sdk-fmt>
|
|
|
|
|
$<BUILD_INTERFACE:rocprofiler-sdk::rocprofiler-sdk-yaml-cpp>
|
|
|
|
|
$<BUILD_INTERFACE:rocprofiler-sdk::rocprofiler-sdk-dl>
|
|
|
|
|
$<BUILD_INTERFACE:rocprofiler-sdk::rocprofiler-sdk-ptl>
|
|
|
|
|
$<BUILD_INTERFACE:rocprofiler-sdk::rocprofiler-sdk-atomic>
|
|
|
|
|
$<BUILD_INTERFACE:rocprofiler-sdk::rocprofiler-sdk-hsakmt-nolink>
|
|
|
|
|
$<BUILD_INTERFACE:rocprofiler-sdk::rocprofiler-sdk-elfio>)
|
2024-03-21 17:52:15 -05:00
|
|
|
|
2024-10-25 11:17:34 -05:00
|
|
|
set_target_properties(rocprofiler-sdk-common-library PROPERTIES OUTPUT_NAME
|
|
|
|
|
rocprofiler-sdk-common)
|