district10 / cmake-templates

Some CMake Templates (examples). Qt, Boost, OpenCV, C++11, etc 一些栗子
http://blog.tangzhixiong.com/post-0100-cmake-templates.html
MIT License
530 stars 140 forks source link

HOWTO: Win + CMake + Visual Studio 2010 #1

Open district10 opened 8 years ago

district10 commented 8 years ago

Caution: If you don't have Qt4 configured, use cpp instead of qt4-project. The work-through is the same.

Tip: Better to use VS2015. (I'll leave the tutorial here 'cause I don't have time to re-screenshot.)

1. Drag CMakeLists.txt to CMakeGUI

2. Build Visual Studio Solution

3. Go to build dir, and open *.sln with Visual Studio

4. Set StartUp Project

5. Build & Run

6. Finally, you did it