3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

WSLでCMake環境を整える

Posted at

Install

コマンドラインから以下でOK.

$ sudo apt-get install cmake

使い方

コマンドラインでの操作は以下です.

# build用のディレクトリ作成
$ mkdir build
$ cd build 
# CMakeLists.txtのあるディレクトリでcmakeコマンドを実行
$ cmake ..
# build
$ cmake --build .

VSCodeを使用しており,そこですべて完結させたい場合は
Getting Started — CMake Tools 1.1.3 documentation
上記記事を参考に設定すれば

CMake: Configure
CMake: Build

でBuildできます.

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?