Update README.md

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2019-08-23 10:24:09 +08:00 committed by GitHub
parent bb40e3a33c
commit 18da1f123d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,11 +3,16 @@ CM CMake module file
## use
- create root project
- create a project
- run "git submodule add https://github.com/hyzboy/CMCMakeModule" in project root directory.
- run "git submodule add https://github.com/hyzboy/CMCore"
- run "git submodule add https://github.com/hyzboy/CMPlatform"
- add the following code to project CMakeLists.txt
```
cmake_minimum_required(VERSION 3.0)
project(SampleProject)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/CMCMakeModule)