Update README.md
This commit is contained in:
parent
bb40e3a33c
commit
18da1f123d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user