Skip to content

Commit

Permalink
sqlite3 library amalgamation
Browse files Browse the repository at this point in the history
Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com>
  • Loading branch information
EugenioCollado committed Dec 30, 2024
1 parent 4d292a4 commit d43dff9
Show file tree
Hide file tree
Showing 4 changed files with 274,846 additions and 2 deletions.
11 changes: 11 additions & 0 deletions ddsrecorder_participants/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
cmake_minimum_required(VERSION 3.5)

# Done this to set machine architecture and be able to call cmake_utils
enable_language(C)
enable_language(CXX)

###############################################################################
Expand Down Expand Up @@ -60,14 +61,24 @@ project(
# - Configure log depending on LOG_INFO flag and CMake type
configure_project_cpp()

# Include the SQLite thirdparty directory
include_directories("${PROJECT_SOURCE_DIR}/../thirdparty/sqlite")

# Collect source files, including SQLite
file(
GLOB_RECURSE SOURCES_FILES
"${PROJECT_SOURCE_DIR}/src/cpp/*.c*"
"${PROJECT_SOURCE_DIR}/../thirdparty/sqlite/sqlite3.c"
)

file(
GLOB_RECURSE HEADERS_FILES
"${PROJECT_SOURCE_DIR}/include/*.h*"
"${PROJECT_SOURCE_DIR}/../thirdparty/sqlite/sqlite3.h"
)

set(sqlite3_source_files
"${PROJECT_SOURCE_DIR}/../thirdparty/sqlite/sqlite3.c"
)

# Compile C++ library
Expand Down
3 changes: 1 addition & 2 deletions ddsrecorder_participants/project_settings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ set(MODULE_DEPENDENCIES
ddspipe_core
ddspipe_participants
$<IF:$<BOOL:${WIN32}>,lz4::lz4,lz4>
$<IF:$<BOOL:${WIN32}>,$<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>,zstd>
sqlite3)
$<IF:$<BOOL:${WIN32}>,$<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>,zstd>)

set(MODULE_CPP_VERSION
C++17)
Loading

0 comments on commit d43dff9

Please sign in to comment.