From 67e1b4fd0172f98aa33d875b31e7930eae3fb0f1 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Fri, 23 Aug 2019 11:32:07 +0800 Subject: [PATCH] Update README.md --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 07c2090..0787fd7 100644 --- a/README.md +++ b/README.md @@ -11,16 +11,28 @@ CM CMake module file ``` cmake_minimum_required(VERSION 3.0) - project(SampleProject) + project(YourProject) set_property(GLOBAL PROPERTY USE_FOLDERS ON) set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/CMCMakeModule) + #if you use Vulkan API + include(vulkan) + include(math) use_mgl(${CMAKE_CURRENT_SOURCE_DIR}/3rdpty/MathGeoLib) include(use_cm_module) use_cm_module(Core) use_cm_module(Platform) + + ... + + add_executable(YourProgram ...) + target_link_libraries(YourProgram CMCore CMPlatform) + + #if you use vulkan render + target_link_libraried(YourProject ${RENDER_LIBRARY} ${Vulkan_LIBRARIES}) + ```