首页

欢迎

 

Welcome

欢迎来到这里, 这是一个学习数学、讨论数学的网站.

转到问题

请输入问题号, 例如: 2512

IMAGINE, THINK, and DO
How to be a scientist, mathematician and an engineer, all in one?
--- S. Muthu Muthukrishnan

Local Notes

Local Notes 是一款 Windows 下的笔记系统.

Local Notes 下载

Sowya

Sowya 是一款运行于 Windows 下的计算软件.

详情

下载 Sowya.7z (包含最新版的 Sowya.exe and SowyaApp.exe)


注: 自 v0.550 开始, Calculator 更名为 Sowya. [Sowya] 是吴语中数学的发音, 可在 cn.bing.com/translator 中输入 Sowya, 听其英语发音或法语发音.





注册

欢迎注册, 您的参与将会促进数学交流. 注册

在注册之前, 或许您想先试用一下. 测试帐号: usertest 密码: usertest. 请不要更改密码.


我制作的 slides

Problem

随机显示问题

Problèmes d'affichage aléatoires

软件 >> CMake
Questions in category: CMake (CMake).

cmake 教程

Posted by haifeng on 2021-04-28 14:30:39 last update 2021-04-28 15:25:48 | Answers (0)


 

CMake Tutorial — CMake 3.20.1 Documentation

 

 

D:\work\cs\c\cmakeProjects\sqrt\build>where cmake
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe

D:\work\cs\c\cmakeProjects\sqrt\build>cmake ..
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
-- The C compiler identification is MSVC 19.28.29913.0
-- The CXX compiler identification is MSVC 19.28.29913.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: D:/work/cs/c/cmakeProjects/sqrt/build


D:\work\cs\c\cmakeProjects\sqrt\build>dir
 驱动器 D 中的卷是 计算机

 D:\work\cs\c\cmakeProjects\sqrt\build 的目录

2021-04-28  15:03   

          .
2021-04-28  15:03   

          ..
2021-04-28  15:03            72,728 ALL_BUILD.vcxproj
2021-04-28  14:01               286 ALL_BUILD.vcxproj.filters
2021-04-28  14:01             3,126 CalculateSqrt.sln
2021-04-28  14:01            26,587 CalculateSqrt.vcxproj
2021-04-28  14:01               576 CalculateSqrt.vcxproj.filters
2021-04-28  15:03            14,559 CMakeCache.txt
2021-04-28  15:03   

          CMakeFiles
2021-04-28  14:01             1,436 cmake_install.cmake
2021-04-28  15:03             3,116 Tutorial.sln
2021-04-28  15:03            82,169 Tutorial.vcxproj
2021-04-28  15:03               579 Tutorial.vcxproj.filters
2021-04-28  15:03            72,392 ZERO_CHECK.vcxproj
2021-04-28  14:01               529 ZERO_CHECK.vcxproj.filters

 

 


 

D:\work\cs\c\cmakeProjects\sqrt\build>cmake --build .
用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.9.0+5e4b48a27
版权所有(C) Microsoft Corporation。保留所有权利。

  Checking Build System
  Building Custom Rule D:/work/cs/c/cmakeProjects/sqrt/CMakeLists.txt
  tutorial.cxx
  Tutorial.vcxproj -> D:\work\cs\c\cmakeProjects\sqrt\build\Debug\Tutorial.exe
  Building Custom Rule D:/work/cs/c/cmakeProjects/sqrt/CMakeLists.txt