1 Star 0 Fork 0

soui3-demo/mclistview_demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 2.15 KB
一键复制 编辑 原始数据 按行查看 历史
setoutsoft 提交于 2019-11-27 15:34 . update CMakeLists.txt
#
# 1394020320@qq.com
#
cmake_minimum_required(VERSION 3.4.3)
project(mclistview_demo)
file (TO_CMAKE_PATH "$ENV{SOUI3PATH}" SOUI_ROOT)
message(STATUS "SOUI_ROOT: ${SOUI_ROOT}")
if ("${SOUI_ROOT}" STREQUAL "")
message(FATAL_ERROR "FATAL:can't find env variable SOUI3PATH, clone soui core and install wizard first, please.")
endif()
include(${SOUI_ROOT}/__cmake/cotire.cmake)
include(${SOUI_ROOT}/__cmake/internal_utils.cmake)
include(${SOUI_ROOT}/__cmake/global.cmake)
readSettingFile(UNICODE "1" USE_UNICODE)
readSettingFile(WCHAR "1" WCHAR_AS_DEFAULT)
readSettingFile(MT "0" SHARED_CRT)
readSettingFile(SUPPORT_XP "1" XP_TOOLSET)
#message(STATUS "USE_UNICODE: ${USE_UNICODE}")
#message(STATUS "WCHAR_AS_DEFAULT: ${WCHAR_AS_DEFAULT}")
#message(STATUS "SHARED_CRT: ${SHARED_CRT}")
#message(STATUS "XP_TOOLSET: ${XP_TOOLSET}")
config_compiler_and_linker()
include_directories(${SOUI_ROOT}/config)
include_directories(${SOUI_ROOT}/components)
include_directories(${SOUI_ROOT}/utilities/include)
include_directories(${SOUI_ROOT}/SOUI/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
file(GLOB_RECURSE CURRENT_HEADERS *.h *.hpp)
file(GLOB_RECURSE CURRENT_SRCS *.cpp)
file(GLOB_RECURSE CURRENT_SOUIS *.xml *.idx *.ico)
file(GLOB_RECURSE CURRENT_RC *.rc *.rc2)
source_group("Header Files" FILES ${CURRENT_HEADERS})
source_group("Source Files" FILES ${CURRENT_SRCS})
source_group("SoUI Resouece" FILES ${CURRENT_SOUIS})
source_group("Resource Files" FILES ${CURRENT_RC})
link_directories(${SOUI_ROOT}/bin)
add_executable(mclistview_demo WIN32 ${CURRENT_HEADERS} ${CURRENT_SRCS} ${CURRENT_SOUIS} ${CURRENT_RC})
#add_dependencies(mclistview_demo soui-sys-resource)
#target_link_libraries(mclistview_demo utilities soui ${COM_LIBS})
target_link_libraries(mclistview_demo
debug souid optimized soui
debug utilitiesd optimized utilities
)
set_target_properties(mclistview_demo PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "stdafx.h")
set_target_properties(mclistview_demo PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
set_target_properties (mclistview_demo PROPERTIES
FOLDER demos
)
cotire(mclistview_demo)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/soui3-demo/mclistview_demo.git
git@gitee.com:soui3-demo/mclistview_demo.git
soui3-demo
mclistview_demo
mclistview_demo
master

搜索帮助