Skip to content

Commit e25c533

Browse files
committed
add Status data structure
This is adpated from Apache Arrow, this is a pre step before integret the Result data structure. Signed-off-by: Junwang Zhao <[email protected]>
1 parent b5c3d45 commit e25c533

File tree

15 files changed

+1308
-0
lines changed

15 files changed

+1308
-0
lines changed

CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ project(iceberg
2828
DESCRIPTION "Iceberg C++ Project"
2929
LANGUAGES CXX)
3030

31+
include(FetchContent)
32+
3133
set(CMAKE_CXX_STANDARD 20)
3234
set(CMAKE_CXX_STANDARD_REQUIRED ON)
3335
set(CMAKE_CXX_EXTENSIONS OFF)
@@ -37,6 +39,12 @@ option(ICEBERG_BUILD_STATIC "Build static library" ON)
3739
option(ICEBERG_BUILD_SHARED "Build shared library" OFF)
3840
option(ICEBERG_BUILD_TESTS "Build tests" ON)
3941

42+
option(ICEBERG_EXTRA_ERROR_CONTEXT
43+
"Compile with extra error context (line numbers, code)" OFF)
44+
if(ICEBERG_EXTRA_ERROR_CONTEXT)
45+
add_definitions(-DICEBERG_EXTRA_ERROR_CONTEXT)
46+
endif()
47+
4048
include(CMakePackageConfigHelpers)
4149
include(CMakeParseArguments)
4250
include(BuildUtils)
@@ -55,6 +63,11 @@ add_subdirectory(api)
5563
add_subdirectory(src)
5664

5765
if(ICEBERG_BUILD_TESTS)
66+
fetchcontent_declare(googletest
67+
GIT_REPOSITORY https://github.com/google/googletest.git
68+
GIT_TAG b514bdc898e2951020cbdca1304b75f5950d1f59 # release-1.15.2
69+
)
70+
fetchcontent_makeavailable(googletest)
5871
enable_testing()
5972
add_subdirectory(test)
6073
endif()

0 commit comments

Comments
 (0)