added CMakeLists.txt and path_config.cmake

This commit is contained in:
hyzboy 2023-07-26 23:59:35 +08:00
parent c6e05eeba4
commit 891e2b45db
No known key found for this signature in database
GPG Key ID: 067EE4525D4FB6D3
3 changed files with 17 additions and 0 deletions

8
CMakeLists.txt Normal file
View File

@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.0)
project(CMGUI)
include(path_config.cmake)
CMGUISetup(${CMAKE_CURRENT_SOURCE_DIR})
add_subdirectory(${CMGUI_ROOT_SOURCE_PATH})

9
path_config.cmake Normal file
View File

@ -0,0 +1,9 @@
macro(CMGUISetup CMGUI_ROOT_PATH)
message("CMROOT_ROOT_PATH: " ${CMGUI_ROOT_PATH})
set(CMGUI_ROOT_INCLUDE_PATH ${CMGUI_ROOT_PATH}/inc/gui)
set(CMGUI_ROOT_SOURCE_PATH ${CMGUI_ROOT_PATH}/src)
include_directories(${CMGUI_ROOT_INCLUDE_PATH})
endmacro()

0
src/CMakeLists.txt Normal file
View File