C++高性能并行编程与优化 - 课件 - 11 现代 CMake 进阶指南
ake/ project 的初始化: VERSION 字段 • project( 项目名 VERSION x.y.z) 可以把当前项目的版本号设定为 x.y.z 。 • 之后可以通过 PROJECT_VERSION 来获取当前项目的版本号。 • PROJECT_VERSION_MAJOR 获取 x (主版本号)。 • PROJECT_VERSION_MINOR 获取 y (次版本号)。 • PROJECT_VERSION_PATCH 获取 z (补丁版本号)。 一些没什么用,但 CMake 官方不知为何就是提供了的项目字段…… 项目名的另一大作用:会设置另外 < 项目名 >_SOURCE_DIR 等变量 小技巧: CMake 的 ${} 表达式可以嵌套 因为 ${PROJECT_NAME} 求值的结果是 hellocmake 所以 ${${PROJECT_NAME}_VERSION} ${hellocmake_VERSION} 进一步求值的结果也就是刚刚指定的 0.2.3 了。 cmake_minimum_required 指定最低所需的 CMake 版本 假如你写的 CMakeLists.txt 包含了 3.15 版本才有的特性, 如果用户在老版本上使用,就会出现各种奇怪的错误。 因此最好在第一行加个 cmake_minimum_required(VERSION 3.15) 表示本0 码力 | 166 页 | 6.54 MB | 1 年前3C++20: An (Almost) Complete Overview
[[likely]] and [[unlikely]] Calendars & Timezones std::span Feature Test Macros <version> Immediate Functions – consteval constinit Class Enums and using Directive Text Formatting all C++ headers are “importable”, e.g. import <version>; Everything in <version> is exported, including macros Improves build throughput; <version> will be processed only once Comparable to precompiled optional_is_experimental 1 #endif #endif70 <version> Supplies implementation-dependent information about the C++ Standard Library you are using Example: Version number Release date Copyright notice0 码力 | 85 页 | 512.18 KB | 5 月前3whats new in visual studio
Preview 5 Preview 6 Version 16.8 Preview 1 Preview 2 Preview 3 Preview 4 Preview 5 Version 16.9 Preview 1 Preview 2 Preview 3 Preview 4 Version 16.10 Preview 1 Preview 2 Preview 3 Version 16.11 CppCon development 4. Developer and Team Productivity At CppCon last year Announcing In Visual Studio 2019 version 16.11, C++20 is now feature complete • All features under /std:c++20 switch are production ready libraries available for installation • Built from source, on-demand • Centralized, tested catalog (no version conflicts) • Popular build targets supported by default, and you can add your own custom targets0 码力 | 42 页 | 19.02 MB | 5 月前3C++高性能并行编程与优化 - 课件 - 16 现代 CMake 模块化项目管理指南
依赖项配置 用 find_package 寻找系统中安装的第三方库并链接他们 find_package 命令 • 常用参数列表一览: • find_package([version] [EXACT] [QUIET] [CONFIG] [MODULE] • [REQUIRED] [[COMPONENTS] [components...]] • (${XXX_VERSION} VERSION_LESS 3.1.0) 判断大小。 https://cmake.org/cmake/help/latest/command/if.html find_package 命令指定版本 • find_package(OpenCV REQUIRED) • 查找名为 OpenCV 的包,不限版本,事后可以通过 ${OpenCV_VERSION} 查询找到的版本。 find_package(OpenCV 2.0.1 REQUIRED) • 查找版本在 2.0.1 以上的 OpenCV 包( version >= 2.0.1 )。 • find_package(OpenCV 2.0.1 EXACT REQUIRED) • 查找版本刚好为 2.0.1 的 OpenCV 包( version == 2.0.1 )。 • 如果没写全,则没写的部分默认为 0 。例如下列三者等价: • find_package(OpenCV 0 码力 | 56 页 | 6.87 MB | 1 年前3Spreadsheet Analysis using Atlassian Tools
GIT is a version control system that is used for software development and other version control tasks. As a distributed revision control system it is aimed at speed, data integrity, and support for0 码力 | 1 页 | 120.37 KB | 5 月前3hazard pointer synchronous reclamation
com/facebook/folly under folly/synchronization/Hazptr.h Working Draft, Extensions to C++ for Concurrency Version 2 (wg21.link/n4895). Hazard Pointers: Safe Memory Reclamation for Lock-Free Objects, IEEE Transactions Hazard Pointers – Maged Michael Watch CPPCON 2021 Talk on Concurrency TS2 The Upcoming Concurrency TS Version 2 for Low-Latency and Lockless Synchronization (with Paul McKenney and Michael Wong)0 码力 | 31 页 | 856.38 KB | 5 月前3闫明 RustConfChina TiDB Serverless.pptx
version https://git-lfs.github.com/spec/v1 oid sha256:477ea3b9cb5ff505ef7d8528eb63d892d8728994f7a9436c6f2ef6f657ce9fdb size 180612370 码力 | 1 页 | 133.00 B | 5 月前3Bazel
tag=harbor.cloud.netease.com/curve/curvefs:chengyi01-debian113 修改 & 单元测试 curvefs/test/tools/curvefs_version_tool_test.cpp # 使用 clang 编译 CC=clang CXX=clang++ bazel build curvefs/...THANK YOU0 码力 | 6 页 | 4.69 MB | 5 月前3Introduction to Mobile UI Test Automation
-reporting If you don’t configure it, it won’t work. ;) Appium config file: Platform name Platform version Device name Application path https://appium.io/slate/en/master/?javascript#appium-server-capabilities0 码力 | 41 页 | 4.75 MB | 1 年前3Finding Bugs using Path-Sensitive Static Analysis
Fourier-Motzkin eliminationResourcesImproved Null Pointer Dereference Detection in Visual Studio 2 022 version 17.0 Preview 4 - C++ Team Blog (microsoft.com)0 码力 | 35 页 | 14.13 MB | 5 月前3
共 13 条
- 1
- 2