Skip to content

Toshiyana/cpp-opencv-cmake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp-opencv-cmake

practice setting the opencv enviornment using cmake

実行コマンド

mkdir build
cd build
cmake .. .
make
cd ..
./build/Main

画像が表示されればok.

ポイント

  • 自分のソースコードとcmakeのbuildにより生成されるファイルを分離するために,buildディレクトリを作ってから"cmake .. ."によりCMakeLists.txtを実行.
  • "make"によりコンパイルして./Mainを生成.
  • 画像ファイルとソースコードと同じ階層で実行する必要があるので, "cd .."で上の階層に移ってから,"./build/Main"を実行.

About

practice c++ opencv using cmake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published