34 lines
984 B
CMake
34 lines
984 B
CMake
|
|
# ------------------------------------------------------------------------------#
|
||
|
|
#
|
||
|
|
# rocprofiler-systems logger library
|
||
|
|
#
|
||
|
|
# ------------------------------------------------------------------------------#
|
||
|
|
|
||
|
|
add_library(rocprofiler-systems-logger INTERFACE)
|
||
|
|
add_library(rocprofsys-logger ALIAS rocprofiler-systems-logger)
|
||
|
|
add_library(
|
||
|
|
rocprofiler-systems::rocprofiler-systems-logger
|
||
|
|
ALIAS rocprofiler-systems-logger
|
||
|
|
)
|
||
|
|
|
||
|
|
target_sources(
|
||
|
|
rocprofiler-systems-logger
|
||
|
|
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/logger.hpp ${CMAKE_CURRENT_SOURCE_DIR}/debug.hpp
|
||
|
|
)
|
||
|
|
|
||
|
|
get_filename_component(LOGGER_SOURCE_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}" DIRECTORY)
|
||
|
|
|
||
|
|
target_include_directories(
|
||
|
|
rocprofiler-systems-logger
|
||
|
|
INTERFACE $<BUILD_INTERFACE:${LOGGER_SOURCE_INCLUDE_DIR}>
|
||
|
|
)
|
||
|
|
|
||
|
|
target_link_libraries(
|
||
|
|
rocprofiler-systems-logger
|
||
|
|
INTERFACE $<BUILD_INTERFACE:rocprofiler-systems::rocprofiler-systems-spdlog>
|
||
|
|
)
|
||
|
|
|
||
|
|
if(ROCPROFSYS_BUILD_TESTING)
|
||
|
|
add_subdirectory(tests)
|
||
|
|
endif()
|