1 Star 0 Fork 9

RouyiLee/dmorm

forked from brinkqiang/dmorm 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
brinkqiang 提交于 2021-05-07 09:53 . 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("dmformat" "thirdparty/dmformat")
ModuleImport("dmprotobuf" "thirdparty/dmprotobuf")
ModuleImport2("mysql" "thirdparty/mysql")
IF (WIN32)
ExeImport("test" "libmysql;libprotoc;libprotobuf-lite")
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")
ENDIF(WIN32)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/LeyiLee/dmorm.git
git@gitee.com:LeyiLee/dmorm.git
LeyiLee
dmorm
dmorm
master

搜索帮助