1 Star 0 Fork 32

lee_learning/qlpmsp

forked from 龙少/qlpmsp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
龙少 提交于 2022-05-05 11:54 . fix: 优化 cmake, 适配 windows 环境
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
project(
qlpmsp
DESCRIPTION "qlpmsp"
LANGUAGES C CXX
)
find_package(Qt5 REQUIRED COMPONENTS Core Widgets OpenGL Xml Sql Concurrent LinguistTools)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/build/bin)
set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/build/lib)
set(PLUGIN_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/build/extensions)
endif()
set(PLUGINS_PATH ${LIBRARY_OUTPUT_PATH}/plugins)
file(MAKE_DIRECTORY ${PLUGINS_PATH})
if(PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
message(
FATAL_ERROR
"In-source builds not allowed. Please make a new directory (called a build directory) and run CMake from there."
)
endif()
add_subdirectory(code/core_system)
add_subdirectory(code/dev_base)
add_subdirectory(code/app_fwk)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/null_552_0547/qlpmsp.git
git@gitee.com:null_552_0547/qlpmsp.git
null_552_0547
qlpmsp
qlpmsp
master

搜索帮助