From f761019e724d5c7561560f2837551f97c12f20d1 Mon Sep 17 00:00:00 2001 From: htt1997 Date: Tue, 24 Oct 2023 16:50:59 +0800 Subject: [PATCH] add RDBNDKTest Signed-off-by: htt1997 --- test/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7be9e98f..7e58aea4 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -93,6 +93,16 @@ target_include_directories(RDBTest PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../relati target_include_directories(RDBTest PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../relational_store/frameworks/native/rdb_device_manager_adapter/include) #************************************************RDBTest end************************************************# +#************************************************RDBNDKTest start************************************************# +aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/../relational_store/test/ndk/unittest RelationalStoreNDKTestSrc) +add_executable(RDBNDKTest ${RelationalStoreNDKTestSrc} ${mainSrc} ${serviceSrc}) +target_link_libraries(RDBNDKTest ${links} gtest_main gcov ndk_rdb_store) +target_include_directories(RDBTest PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../relational_store/frameworks/common/include) +target_include_directories(RDBTest PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../relational_store/frameworks/native/dataability/src) +target_include_directories(RDBTest PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../relational_store/frameworks/native/rdb/include) +target_include_directories(RDBTest PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../relational_store/frameworks/native/rdb_device_manager_adapter/include) +#************************************************RDBTest end************************************************# + #************************************************PerferencesTest start************************************************# aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/../preferences/test/native/unittest preferencesTestSrc) add_executable(PerferencesTest ${preferencesTestSrc} ${mainSrc} ${serviceSrc}) -- Gitee