1 Star 0 Fork 1

阿传/DemoQt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
阿传 提交于 2017-05-17 20:10 . fix toolchain
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
PROJECT(DemoQt)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
if (MSVC)
#warning 4251
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4819 /wd4996 ")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${PROJECT_SOURCE_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${PROJECT_SOURCE_DIR}/lib)
endif()
if (CMAKE_PREFIX_PATH)
else()
set (CMAKE_PREFIX_PATH $ENV{CMAKE_PREFIX_PATH})
if (NOT CMAKE_PREFIX_PATH)
set (CMAKE_PREFIX_PATH /home/terry/Qt5.8.0/5.8/gcc_64)
endif()
endif()
message("qt: ${CMAKE_PREFIX_PATH}")
set(PROJECT_ROOT ${PROJECT_SOURCE_DIR})
set(THIRD_PARTY ${PROJECT_ROOT}/third_party)
if (CMAKE_HOST_WIN32)
set(LIB_PLATFORM ws2_32 )
else()
set(LIB_PLATFORM pthread rt)
endif()
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
find_package(Qt5Widgets REQUIRED)
add_subdirectory(demo)
add_subdirectory(democonsole)
add_subdirectory(demoLang)
add_subdirectory(demoOp)
add_subdirectory(demoui)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/100wisdom/DemoQt.git
git@gitee.com:100wisdom/DemoQt.git
100wisdom
DemoQt
DemoQt
master

搜索帮助