1 Star 0 Fork 42

zph/appdata_master_mock

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
ht 提交于 2023-08-29 14:02 . refactor:Split test cases
cmake_minimum_required(VERSION 3.11.2)
project(LDBProj)
set(CMAKE_CXX_STANDARD 17)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
# place binaries and libraries according to GNU standards
include(GNUInstallDirs)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage")
add_subdirectory(utils_native)
add_subdirectory(mock)
add_subdirectory(relational_store)
add_subdirectory(data_share)
add_subdirectory(kv_store)
add_subdirectory(preferences)
add_subdirectory(data_object)
add_subdirectory(datamgr_service)
add_subdirectory(udmf)
set(CMAKE_CXX_FLAGS "-std=c++1y -fno-rtti -fvisibility=default -D_GNU_SOURCE")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdata-sections -fPIC -fpic -ffunction-sections -D_GLIBC_MOCK")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--no-as-needed -ldl")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsign-compare -Wimplicit-fallthrough")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wformat=0 -Wattributes")
add_subdirectory(googletest)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/utils_native/base/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/utils_native/safwk/native/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/mock/innerkits/ipc/ipc_core/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/mock/innerkits/ipc/ipc_single/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/mock/innerkits/ipc/libdbinder/include)
set(MAIN_BINARY ${PROJECT_NAME})
set(links secure mock relational_store data_share preferences jsoncpp crypto distributeddb data_object app adapter svcFwk kvdb service udmf)
add_executable(${MAIN_BINARY} dllmain.cpp)
target_link_libraries(${MAIN_BINARY} ${links})
# add test module
enable_testing()
add_subdirectory(test)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/zph000/appdata_master_mock.git
git@gitee.com:zph000/appdata_master_mock.git
zph000
appdata_master_mock
appdata_master_mock
master

搜索帮助