Newer
Older
Marc Vef
committed
set(PRELOAD_SRC
gkfs_functions.cpp
intercept.cpp
logging.cpp
Marc Vef
committed
open_file_map.cpp
Marc Vef
committed
preload.cpp
preload_context.cpp
Marc Vef
committed
preload_util.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
Marc Vef
committed
)
set(PRELOAD_HEADERS
../../include/client/gkfs_functions.hpp
../../include/config.hpp
../../include/client/env.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/preload_context.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
Marc Vef
committed
)
add_library(gkfs_intercept SHARED ${PRELOAD_SRC} ${PRELOAD_HEADERS})
Boost::boost # needed for tokenizer header
if(GKFS_ENABLE_INSTRUMENTATION)
if(GKFS_INSTRUMENTATION_USE_EXTRAE)
target_link_libraries(gkfs_intercept Extrae::${GKFS_EXTRAE_LIBRARY})
endif()
endif()
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
)