加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 2.10 KB
一键复制 编辑 原始数据 按行查看 历史
hgy413 提交于 2018-03-20 18:15 . [+]增加3325版本
#-------------------------------------------------------
# Copyright (c) YY
# All rights reserved.
# History:
# <Author> <Time> <Version> <Des>
# guoyou 2017-9-4 1.0
#-------------------------------------------------------
cmake_minimum_required(VERSION 2.8)
project(DMWeb)
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
#-------------------------------------------------------------------------------------------------------------------
set(PROJDIR ${CMAKE_CURRENT_SOURCE_DIR})
#-------------------------------------------------------------------------------------------------------------------
set(EXECUTABLE_OUTPUT_PATH ${DMWeb_BINARY_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${DMWeb_BINARY_DIR}/bin)
set(LIBS ${LIBRARY_OUTPUT_PATH})
link_directories(${LIBS})
#-------------------------------------------------------------------------------------------------------------------
option(USE_DMDLL_ "Compile DMMain as dll" ON)
if(USE_DMDLL_)
add_definitions(-DDLL_DMMAIN)
endif()
option(USE_DMLOG_ "DM open log" ON)
if(USE_DMLOG_)
add_definitions(-DDMLOG_ON)
endif()
#-------------------------------------------------------------------------------------------------------------------
# 定义是使用3rdParty/cef_xxxx做为目录,默认cef_2326
set(CEF_VERSION "2623" CACHE STRING "CEF version")
set(CEF_ROOT "${PROJDIR}/3rdParty/cef_${CEF_VERSION}")
if (NOT IS_DIRECTORY ${CEF_ROOT})
message(FATAL_ERROR "CEF_VERSION(${CEF_VERSION}) not exist. Check dir('${CEF_ROOT}').")
endif()
add_definitions(-DCEF_CURRENT_VERSION=${CEF_VERSION})#指定CEF_CURRENT_VERSION宏
#-------------------------------------------------------------------------------------------------------------------
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake)
include(PrecompiledHeader)
#-------------------------------------------------------------------------------------------------------------------
add_subdirectory(${CEF_ROOT})
add_subdirectory(${PROJDIR}/DMMain)
add_subdirectory(${PROJDIR}/3rdParty/cef_module)
add_subdirectory(${PROJDIR}/3rdParty/cef_render)
add_subdirectory(${PROJDIR}/DMWebTest)
add_subdirectory(${PROJDIR}/PluginWeb)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化