Skip to content

Commit

Permalink
[feat] Add mock up implementation for parallax
Browse files Browse the repository at this point in the history
  • Loading branch information
Toutou98 committed Jul 5, 2024
1 parent 250b1e1 commit 6b3d563
Show file tree
Hide file tree
Showing 3 changed files with 1,187 additions and 5 deletions.
13 changes: 12 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,19 @@ ecbuild_add_option( FEATURE LUSTRE # option defined in fdb5_config.h
ecbuild_add_option( FEATURE FDB_REMOTE
DEFAULT ON
DESCRIPTION "Support for FDB remote access" )
find_library(UUID_LIBRARY
NAMES uuid
PATHS /usr/lib/x86_64-linux-gnu
)

if(UUID_LIBRARY)
message(STATUS "UUID library found: ${UUID_LIBRARY}")
set(UUID_FOUND TRUE)
else()
message(FATAL_ERROR "UUID library not found")
endif()

find_package(UUID QUIET)
#find_package(UUID QUIET)

find_package(DAOS QUIET)

Expand Down
19 changes: 15 additions & 4 deletions src/dummy_daos/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
option(USE_PARALLAX "Use parallax.cc instead of daos.cc" OFF)

set (SOURCES
daos.h
dummy_daos.h
dummy_daos.cc
)

if(USE_PARALLAX)
list(APPEND SOURCES parallax.cc)
else()
list(APPEND SOURCES daos.cc)
endif()

ecbuild_add_library(

TARGET dummy_daos
Expand All @@ -8,10 +22,7 @@ ecbuild_add_library(
HEADER_DESTINATION ${INSTALL_INCLUDE_DIR}

SOURCES
daos.h
daos.cc
dummy_daos.h
dummy_daos.cc
${SOURCES}

PUBLIC_LIBS
eckit
Expand Down
Loading

0 comments on commit 6b3d563

Please sign in to comment.