加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.84 KB
一键复制 编辑 原始数据 按行查看 历史
graycatya 提交于 2024-05-14 14:26 . feat: update project
cmake_minimum_required(VERSION 3.9)
project(CatLearnQt LANGUAGES CXX)
if (UNIX)
add_compile_options(-Wall -fPIC -Wno-stringop-overflow)
endif(UNIX)
set(CMAKE_OBJECT_PATH_MAX 1024)
message(STATUS "------------------------------------------------------------" )
message(STATUS "[CatLearnQt] Configuration summary." )
message(STATUS "------------------------------------------------------------ ")
message(STATUS " System configuration:" )
message(STATUS " .. Processor type .............. = ${CMAKE_SYSTEM_PROCESSOR}")
message(STATUS " .. CMake executable ............ = ${CMAKE_COMMAND}" )
message(STATUS " .. CMake version ............... = ${CMAKE_VERSION}" )
message(STATUS " .. System name ................. = ${CMAKE_SYSTEM}" )
message(STATUS " .. C++ compiler ................ = ${CMAKE_CXX_COMPILER}" )
message(STATUS " .. C compiler .................. = ${CMAKE_C_COMPILER}" )
message(STATUS " .. size(void*) ................. = ${CMAKE_SIZEOF_VOID_P}" )
message(STATUS " .. cmake current source ................. = ${CMAKE_CURRENT_SOURCE_DIR}")
message(STATUS " .. cmake system name ................. = ${CMAKE_SYSTEM_NAME}")
message(STATUS "------------------------------------------------------------ ")
set(3RDPARTY
)
set(MODULES
QCatGrayCore
QCatGrayQuick
QCatGrayWidgets
)
set(EXAMPLES
QCatGrayQuickExamples
QCatGrayWidgetExamples
)
foreach(3rdparty_module ${3RDPARTY})
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/${3rdparty_module})
endforeach(3rdparty_module ${3RDPARTY})
foreach(module ${MODULES})
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/modules/${module})
endforeach(module ${MODULES})
foreach(example ${EXAMPLES})
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/examples/${example})
endforeach(example ${EXAMPLES})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化