加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
chaocc.wang 提交于 2020-05-28 18:45 . 版本迭代 - 2020-05-28
project(UIGroupManager)
set(CMAKE_CXX_STANDARD 14)
# 打开Qt的Moc功能和ui文件QRC文件处理功能
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
include_directories(.)
find_package(Qt5Widgets)
find_package(Qt5Concurrent)
#
set(SOURCE_FILES
UIGroupManager.cpp
UIGroupManager.h
uigroupmanager_global.h
UIGroupManagerPlug.cpp
UIGroupManagerPlug.h
SearchWgt.cpp
SearchWgt.h
MessageManager.cpp
MessageManager.h
ChoseMemberWgt.cpp
ChoseMemberWgt.h
TreeItemDelegate.cpp
TreeItemDelegate.h
image1.qrc
BatchAddMemberWnd.cpp
BatchAddMemberWnd.h
AddGroupEdit.cpp
AddGroupEdit.h SearchView.cpp SearchView.h)
if(APPLE)
ADD_DEFINITIONS(-D_MACOS)
elseif(UNIX)
ADD_DEFINITIONS(-D_LINUX)
else()
ADD_DEFINITIONS(-D_WINDOWS)
ADD_DEFINITIONS(-DUIGROUPMANAGER_LIB)
link_directories(../Depends/curl/lib/windows/x64)
link_directories(../Depends/zlib/lib/windows/x64)
link_directories(../Depends/openssl/lib/windows/x64)
endif()
set(LIBRARY_OUTPUT_PATH ../bin)
set (CMAKE_DEBUG_POSTFIX "d")
ADD_LIBRARY(${PROJECT_NAME} SHARED ${SOURCE_FILES})
#添加链接库
target_link_libraries(${PROJECT_NAME}
Qt5::Widgets
Qt5::Concurrent
CustomUi
EventBus
SUICom
Platform
QtUtil)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化