1 Star 0 Fork 0

陈奕州/data_store

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
陈奕州 提交于 2024-05-05 17:10 . style: Update
cmake_minimum_required(VERSION 3.15)
project(example)
set(CMAKE_CXX_STANDARD 17)
set(THREADS_PREFER_PTHREAD_FLAG ON)
add_definitions(-DMSGPACK_NO_BOOST)
add_definitions(-DMSGPACK_CXX17)
if(NOT MSVC)
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
message(STATUS "[${PROJECT_NAME}] Found CCache: ${CCACHE_PROGRAM}")
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ${CCACHE_PROGRAM})
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE_PROGRAM})
endif()
endif()
set(ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(DEPEND_DIR ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty)
find_package(Threads)
file(GLOB CURRENT_HEADER ${ROOT_DIR}/include/*)
message("[${PROJECT_NAME}] Current HEADER: ${CURRENT_HEADER}")
file(GLOB SQLITE_SRC ${DEPEND_DIR}/sqlite/src/*)
message("[${PROJECT_NAME}] SQLite SRC: ${SQLITE_SRC}")
add_executable(${PROJECT_NAME} main.cpp ${SQLITE_SRC} ${CURRENT_HEADER})
target_include_directories(${PROJECT_NAME} PRIVATE
${ROOT_DIR}/include
${DEPEND_DIR}/msgpack-c/include
${DEPEND_DIR}/sqlite/include
)
target_link_libraries(${PROJECT_NAME}
${CMAKE_THREAD_LIBS_INIT}
${CMAKE_DL_LIBS}
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/Geoyee/data_store.git
[email protected]:Geoyee/data_store.git
Geoyee
data_store
data_store
main

搜索帮助