CMakeLists.txt 2.42 KiB
Newer Older
Tommaso Tocci's avatar
Tommaso Tocci committed
    hooks.cpp
    intercept.cpp
    logging.cpp
Tommaso Tocci's avatar
Tommaso Tocci committed
    open_dir.cpp
    ../global/path_util.cpp
    ../global/rpc/rpc_util.cpp
    rpc/rpc_types.cpp
    rpc/forward_data.cpp
    rpc/forward_management.cpp
    rpc/forward_metadata.cpp
    syscalls/detail/syscall_info.c
    ../../include/client/gkfs_functions.hpp
    ../../include/config.hpp
    ../../include/client/env.hpp
Tommaso Tocci's avatar
Tommaso Tocci committed
    ../../include/client/hooks.hpp
    ../../include/client/intercept.hpp
    ../../include/client/logging.hpp
    ../../include/client/make_array.hpp
    ../../include/client/open_file_map.hpp
    ../../include/client/open_dir.hpp
    ../../include/client/path.hpp
    ../../include/client/preload.hpp
    ../../include/client/preload_context.hpp
    ../../include/client/preload_util.hpp
    ../../include/client/rpc/rpc_types.hpp
    ../../include/client/rpc/forward_management.hpp
    ../../include/client/rpc/forward_metadata.hpp
    ../../include/client/rpc/forward_data.hpp
    ../../include/client/syscalls/args.hpp
    ../../include/client/syscalls/decoder.hpp
    ../../include/client/syscalls/errno.hpp
    ../../include/client/syscalls/rets.hpp
    ../../include/client/syscalls/syscall.hpp
    ../../include/client/syscalls/detail/syscall_info.h
    ../../include/global/cmake_configure.hpp
    ../../include/global/chunk_calc_util.hpp
    ../../include/global/global_defs.hpp
    ../../include/global/path_util.hpp
    ../../include/global/rpc/rpc_types.hpp
    ../../include/global/rpc/rpc_util.hpp
Tommaso Tocci's avatar
Tommaso Tocci committed
add_library(gkfs_intercept SHARED ${PRELOAD_SRC} ${PRELOAD_HEADERS})
Tommaso Tocci's avatar
Tommaso Tocci committed
target_link_libraries(gkfs_intercept
    env_util
Tommaso Tocci's avatar
Tommaso Tocci committed
    Syscall_intercept::Syscall_intercept
    Boost::boost # needed for tokenizer header
    Threads::Threads
if(GKFS_ENABLE_INSTRUMENTATION)
    if(GKFS_INSTRUMENTATION_USE_EXTRAE)
        target_link_libraries(gkfs_intercept Extrae::${GKFS_EXTRAE_LIBRARY})
    endif()
endif()

Tommaso Tocci's avatar
Tommaso Tocci committed
target_include_directories(gkfs_intercept
    PRIVATE
    ${ABT_INCLUDE_DIRS}
    ${MARGO_INCLUDE_DIRS}
    )

install(TARGETS gkfs_intercept
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
    PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/gkfs
)