Cpp2-Example

所属分类:C/C++基础
开发工具:CMake
文件大小:4KB
下载次数:0
上传日期:2022-09-22 20:05:48
上 传 者sh-1993
说明:  与Herb Sutter cppfront一起玩的Cmake项目(cpp2->cpp1)

文件列表:
CMakeLists.txt (1041, 2022-09-23)
LICENSE (7048, 2022-09-23)
main.cpp2 (333, 2022-09-23)

# Cpp2-Example Cmake project to play with Herb Sutter cppfront (cpp2 -> cpp1). It is using cppfront code https://github.com/hsutter/cppfront to process `*.cpp2` files and compile them with your C++20 capable compiler. ## Use 1. Edit `main.cpp2`file. 2. Create a build directory and run `cmake ..` (assuming build is in the project directory), 3. Build it with `cmake --build .`` 4. Run it with `./main` ## Note Cppfront is used with `-p` options which means that you can only compile pure cpp2 code. If you want to use it with mixed mode change `cppfront -p` to `cppfront` in the `CMakeLists.txt` file.

近期下载者

相关文件


收藏者