2019-08-20 15:53:47 +08:00
2019-08-20 15:53:47 +08:00
2019-08-20 15:53:47 +08:00
2019-08-20 15:53:47 +08:00
2019-08-20 15:53:47 +08:00
2019-08-20 18:02:25 +08:00
2019-10-25 15:00:51 +08:00
2019-08-23 11:36:27 +08:00
2019-08-23 10:45:29 +08:00

CMCMakeModule

CM CMake module file

use

  • create a project
  • switch to the project root directory using the console/bash/GIT Bash
  • run the following command
 git submodule add https://github.com/hyzboy/CMCMakeModule
 git submodule add https://github.com/hyzboy/CMCore
 git submodule add https://github.com/hyzboy/CMPlatform
  • add the following code to project CMakeLists.txt
   cmake_minimum_required(VERSION 3.0)
   
   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})
   
Description
No description provided
Readme 72 KiB
Languages
CMake 100%