added CMakeLists.txt and path_config.cmake
This commit is contained in:
parent
c6e05eeba4
commit
891e2b45db
8
CMakeLists.txt
Normal file
8
CMakeLists.txt
Normal 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
9
path_config.cmake
Normal 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
0
src/CMakeLists.txt
Normal file
Loading…
x
Reference in New Issue
Block a user