1 Star 0 Fork 9

秋枫/dmorm

forked from brinkqiang/dmorm 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
brinkqiang 提交于 2022-09-29 00:18 . add
cmake_minimum_required(VERSION 3.2)
PROJECT(dmorm)
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
INCLUDE(cmake/ModuleImport.cmake)
INCLUDE(cmake/ModuleCompileOptions.cmake)
ModuleSetCompileOptions()
ModuleSetWinCompilerFlags()
ModuleImport("dmflags" "thirdparty/dmflags")
ModuleImport("dmformat" "thirdparty/dmformat")
ModuleImport("dmprotobuf" "thirdparty/dmprotobuf")
ModuleImport2("mysql" "thirdparty/mysql")
IF (WIN32)
ExeImport("test" "libmysql;libprotoc;libprotobuf-lite;dmflags")
ADD_CUSTOM_COMMAND(
TARGET dmormtest
PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/mysql/lib/libmysql.dll
$<TARGET_FILE_DIR:dmormtest>
)
ELSE(WIN32)
#if (NOT Boost_FOUND)
#find_package(Boost REQUIRED thread system date_time chrono regex)
#if (Boost_FOUND)
# include_directories(${Boost_INCLUDE_DIRS})
# link_directories(${Boost_LIBRARY_DIRS})
#endif()
#endif()
ExeImport("test" "${MYSQL_LIBRARIES};libprotoc;libprotobuf-lite;dmflags")
ENDIF(WIN32)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/uchihahanzo/dmorm.git
git@gitee.com:uchihahanzo/dmorm.git
uchihahanzo
dmorm
dmorm
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385