2 Star 7 Fork 4

CAir/Duilib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.63 KB
一键复制 编辑 原始数据 按行查看 历史
CAir 提交于 2025-01-20 14:04 +08:00 . 优化cmakelits.txt
# CMake root file for duilib related apps
#Date 2012-09-16
#Author: Qi Gao([email protected])
#modify lei liu([email protected] 20240109)
# CMake files for duilib
# file for each app is under the related sub-dir
#
cmake_minimum_required(VERSION 2.8)
project(dui)
message(STATUS," CMake project files for duilib")
# this line is for UNICODE release,which is required by DuiDesigner
# option use UNICODE ,default is true
option(UNICODE "use unicode mode" OFF)
option(UILIB_STATIC "use static duilib" OFF)
option(MT "user runtime mt mode" OFF)
if(UNICODE)
add_definitions(-DUNICODE -D_UNICODE)
endif()
#BUILD_SHARED_LIBS global add_library type shared or static
if(UILIB_STATIC)
add_definitions(-DUILIB_STATIC)
set(BUILD_SHARED_LIBS NO)
else(UILIB_STATIC)
set(BUILD_SHARED_LIBS YES)
endif()
if(CMAKE_CL_64)
set(CURRENT_PLATFORM "x64")
else(CMAKE_CL_64)
set(CURRENT_PLATFORM "x86")
endif(CMAKE_CL_64)
message(STATUS "Current Platform is ${CURRENT_PLATFORM}")
if(MT)
#set_property(TARGET duilib PROPERTY
#MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
endif()
# set the output path for the libraries
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
# add each CMake file
add_subdirectory(duilib)
add_subdirectory(TestApp1)
add_subdirectory(VirtualListDemo)
add_subdirectory(PopupUIDemo)
add_subdirectory(MenuDemo)
add_subdirectory(LayeredDemo)
#add_subdirectory(ScrCapture)
#add_subdirectory(FlashDemo)
add_subdirectory(360SafeDemo)
add_subdirectory(QQDemo)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/Ailsc/Duilib.git
[email protected]:Ailsc/Duilib.git
Ailsc
Duilib
Duilib
master

搜索帮助