Ai
1 Star 0 Fork 0

如醉清风/log4cplus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
Vaclav Haisman 提交于 2019-06-09 23:49 +08:00 . Further modernize CMake build.
set (qt5debugappender_sources
qt5debugappender.cxx)
find_package (Qt5Core REQUIRED)
#include (${QT_USE_FILE})
set (qt5debugappender log4cplusqt5debugappender${log4cplus_postfix})
add_library (${qt5debugappender} ${qt5debugappender_sources})
if (UNICODE)
target_compile_definitions (${qt5debugappender} PUBLIC UNICODE)
target_compile_definitions (${qt5debugappender} PUBLIC _UNICODE)
add_definitions (-UMBCS -U_MBCS)
endif (UNICODE)
if (${BUILD_SHARED_LIBS})
target_compile_definitions (${qt5debugappender} PRIVATE ${log4cplus}_EXPORTS)
endif ()
target_link_libraries (${qt5debugappender}
${log4cplus}
${Qt5Widgets_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT})
set_target_properties (${qt5debugappender} PROPERTIES
VERSION "${log4cplus_version_major}.${log4cplus_version_minor}.${log4cplus_version_patch}"
SOVERSION "${log4cplus_soversion}")
target_compile_definitions (${qt5debugappender} PRIVATE INSIDE_LOG4CPLUS_QT5DEBUGAPPENDER)
qt5_use_modules(${qt5debugappender} Core)
if (WIN32)
set_target_properties (${qt5debugappender} PROPERTIES
DEBUG_POSTFIX "D")
endif ()
install (TARGETS ${qt5debugappender}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install (FILES ../include/log4cplus/qt5debugappender.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/log4cplus)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lug009/log4cplus.git
git@gitee.com:lug009/log4cplus.git
lug009
log4cplus
log4cplus
master

搜索帮助