[DO-982] add sqlite package (!13)

Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/13
This commit is contained in:
Aleksandr Vodyanov
2024-12-26 14:53:49 +03:00
parent 0d5cfacb2e
commit 70e3dea3f3
10 changed files with 755 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
cmake_minimum_required(VERSION 3.1)
project(test_package LANGUAGES C)
option(USE_EMPTY_VFS "Using empty SQLite OS interface")
find_package(SQLite3 REQUIRED)
add_executable(${PROJECT_NAME} test_package.c)
target_link_libraries(${PROJECT_NAME} PRIVATE SQLite::SQLite3)
if(USE_EMPTY_VFS)
target_compile_definitions(${PROJECT_NAME} PRIVATE USE_EMPTY_VFS)
target_sources(${PROJECT_NAME} PRIVATE empty_vfs.c)
endif()