CMake3.25.1发布了,CMake 是一个跨平台的自动化构建系统,它使用一个名为 CMakeLists.txt 的文件来描述构建过程,可以产生标准的构建文件,如 Unix 的 Makefile 或Windows Visual C++ 的 projects/workspaces 。文件 CMakeLists.txt 需要手工编写,也可以通过编写脚本进行半自动的生成,欢迎下载!
组态档取名为 CmakeLists.txt。
并不直接建构出最终的软件,而是产生标准的建构档(如 Unix 的 Makefile 或 Windows Visual C++ 的 projects/workspaces),然后再依一般的建构方式使用。
这使得熟悉某个集成开发环境(IDE)的开发者可以用标准的方式建构他的软件,这种可以使用各平台的原生建构系统的能力是 CMake 和 SCons 等其他类似系统的区别之处。
可以编译源代码、制作程式库、产生适配器(wrapper)、还可以用任意的顺序建构执行档。
支持 in-place 建构(二进档和源代码在同一个目录树中)和 out-of-place 建构(二进档在别的目录里),因此可以很容易从同一个源代码目录树中建构出多个二进档。
也支持静态与动态程式库的建构。
CMake这个名字是“cross platform make”的缩写。虽然名字中含有“make”,但是CMake和Unix上常见的“make”系统是分开的,而且更为高阶。
下载并安装 CMake 和MinGW。添加 C:\MinGW\bin到你的路径。
下载并安装 cURL 使得CURL/lib和CURL/include在你的程序文件目录下。
使用如下命令安装
1
2
|
cmake -G "MinGW Makefiles"
mingw32-make
|
编译并运行
一旦你做好了上面的准备,在你的终端中执行如下命令:
1
2
3
4
5
|
git clone https://github.com/fogleman/Craft.git
cd Craft
cmake .
make
./craft
|
增加 Visual Studio 16 2019 代码生成器,该版本基于 “Visual Studio 2019 Preview 4” 开发
更新了 Green Hills MULTI 生成器
Now supports Object Libraries.
Now warns on unsupported project types such as shared libraries.
Now generates a top-level <PROJECT-NAME>.top.gpj for each directory calling the project() command. The top-level project file default.gpj is no longer created.
Now honors target renaming and destination output control properties such as RUNTIME_OUTPUT_DIRECTORY and OUTPUT_NAME . This also fixes support for installation rules generated by install() .
Now honors source file properties INCLUDE_DIRECTORIES , COMPILE_DEFINITIONS , and COMPILE_OPTIONS .
Now supports Dynamic Download Integrity Applications which did not include Integrate Files via GHS_INTEGRITY_APP and setting a target link flag of -dynamic .
The contents of project files now sorts sources groups and files by name. Set the GHS_NO_SOURCE_GROUP_FILE target property to ON to generate a single project file for the target instead of a project file for each source group. Set the CMAKE_GHS_NO_SOURCE_GROUP_FILE variable to enable this for all targets.
C语言编程软件可以作为工作系统设计语言,编写系统应用程序,也可以作为应用程序设计语言,编写不依赖计算机硬件的应用程序。它的应用范围广泛,具备很强的数据处理能 力,不仅仅是在软件开发上,而且各类科研都需要...
本站为大家提供最新最全的各个版本Microsoft Visual C++运行库免费下载,包含有:VC++6.0/2008/2010/2012/2013/2015/2017欢迎下载体验吧!
编译调试 / 56.1 MB
编译调试 / 409.8 MB
编译调试 / 79.5 MB
编译调试 / 47.3 MB
编译调试 / 98.6 MB
软件评论
请自觉遵守互联网相关政策法规,评论内容只代表网友观点,与本站立场无关!
2016-06-29 17:50 支持(11) 回复