Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

81 lines
3.4 KiB
CMake
Raw Permalink Normal View History

2022-03-07 20:40:48 -06:00
# ----------------------------------------------------------------------------- #
2022-02-19 02:00:59 -06:00
#
# rocprofiler-systems: contains all instrumentation functionality
2022-02-19 02:00:59 -06:00
#
# rocprofiler-systems-dl: contains minimal symbols and dlopen's rocprofiler-systems
2022-02-19 02:00:59 -06:00
#
# rocprofiler-systems-user: contains symbols for user API
2022-02-19 02:00:59 -06:00
#
2022-03-07 20:40:48 -06:00
# ----------------------------------------------------------------------------- #
2022-02-23 06:59:32 -06:00
2023-02-08 11:54:45 -06:00
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.20)
cmake_policy(SET CMP0115 NEW)
endif()
2024-12-13 18:48:39 -05:00
set(ROCPROFSYS_LIB_INSTALL_RPATH "\$ORIGIN:\$ORIGIN/${PROJECT_NAME}")
2022-04-21 21:36:07 -05:00
2023-02-08 11:54:45 -06:00
# ------------------------------------------------------------------------------#
#
# rocprofiler-systems interface library
2023-02-08 11:54:45 -06:00
#
# ------------------------------------------------------------------------------#
add_library(rocprofiler-systems-interface-library INTERFACE)
2025-06-22 10:44:33 -04:00
add_library(
rocprofiler-systems::rocprofiler-systems-interface-library
ALIAS rocprofiler-systems-interface-library
)
2023-02-08 11:54:45 -06:00
target_include_directories(
rocprofiler-systems-interface-library
2025-06-22 10:44:33 -04:00
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/rocprof-sys
)
2023-02-08 11:54:45 -06:00
target_link_libraries(
rocprofiler-systems-interface-library
2023-02-08 11:54:45 -06:00
INTERFACE
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-headers>
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-threading>
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-common-library>
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-compile-options>
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-compile-definitions>
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-perfetto>
2025-07-28 17:33:52 +02:00
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-sqlite3>
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-json>
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-logger>
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-timemory>
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-elfutils>
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-bfd>
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-mpi>
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-ucx>
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-libva>
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-ptl>
2024-12-13 18:48:39 -05:00
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-rocm>
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-static-libgcc-optional>
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-static-libstdcxx-optional>
$<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-sanitizer>
$<BUILD_INTERFACE:$<IF:$<BOOL:${ROCPROFSYS_BUILD_LTO}>,rocprofiler-systems::rocprofiler-systems-lto,>>
2025-06-22 10:44:33 -04:00
)
2023-02-08 11:54:45 -06:00
# ------------------------------------------------------------------------------#
#
# rocprofiler-systems internal libraries
2023-02-08 11:54:45 -06:00
#
# ------------------------------------------------------------------------------#
2022-03-07 20:40:48 -06:00
add_subdirectory(common)
add_subdirectory(core)
add_subdirectory(binary)
add_subdirectory(logger)
2023-02-08 11:54:45 -06:00
# ------------------------------------------------------------------------------#
#
# rocprofiler-systems exported libraries
2023-02-08 11:54:45 -06:00
#
# ------------------------------------------------------------------------------#
add_subdirectory(rocprof-sys)
add_subdirectory(rocprof-sys-dl)
add_subdirectory(rocprof-sys-rt)
add_subdirectory(rocprof-sys-user)