Ubuntu 16.04 Cmake+GDAL+OpenCV3.0
These days I have to generate some projects with GDAL and OpenCV on the Ubuntu platform. And the use of cmake makes it quite simple. Here, I would like to record the way of using cmake for a better understanding.
In order to use this combination, you have to make sure that you have install all the stuff above properly. And then we can ues these to generate the project.
At first, you need to choose a proper directiory as the work place. Assuming it as the /home/tsubasa/CGO (which means Cmake+GDAL+OpenCV3.0), use the command as to create some subdirectories.
cd /home/tsubasa/CGO
mkdir src
mkdir build
Also, you need to create a txt named CMakeLists.txt to describe the thing cmake needs to do. Open it and copy the text below into it.
<