You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
480 B
17 lines
480 B
2 years ago
|
idf_component_register(
|
||
|
SRCS "table.cpp" "env_esp.cpp" "database.cpp"
|
||
|
INCLUDE_DIRS "include"
|
||
|
REQUIRES "result" "span" "esp_psram" "fatfs")
|
||
|
|
||
|
target_compile_options(${COMPONENT_LIB} PRIVATE ${EXTRA_WARNINGS})
|
||
|
|
||
|
set(LEVELDB_BUILD_TESTS OFF)
|
||
|
set(LEVELDB_BUILD_BENCHMARKS OFF)
|
||
|
set(LEVELDB_INSTALL OFF)
|
||
|
|
||
|
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
|
||
|
|
||
|
add_subdirectory($ENV{PROJ_PATH}/lib/leveldb ${CMAKE_CURRENT_BINARY_DIR}/leveldb)
|
||
|
|
||
|
target_link_libraries(${COMPONENT_LIB} PUBLIC leveldb)
|