2020-06-06 16:38:31 +08:00
|
|
|
|
cmake_minimum_required(VERSION 3.0)
|
2018-11-26 20:22:19 +08:00
|
|
|
|
|
2018-11-27 14:30:52 +08:00
|
|
|
|
PROJECT(ULRE)
|
2018-11-26 20:22:19 +08:00
|
|
|
|
|
2019-08-19 11:50:23 +08:00
|
|
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
|
|
|
|
|
2019-08-22 11:39:21 +08:00
|
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/CMCMakeModule)
|
2018-11-26 20:22:19 +08:00
|
|
|
|
|
2019-11-27 19:11:37 +08:00
|
|
|
|
set(ULRE_3RDPTY_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/3rdpty)
|
|
|
|
|
|
2019-08-23 11:17:21 +08:00
|
|
|
|
include(vulkan)
|
|
|
|
|
|
2019-08-22 11:39:21 +08:00
|
|
|
|
include(math)
|
2019-11-27 19:11:37 +08:00
|
|
|
|
use_mgl(${ULRE_3RDPTY_ROOT_PATH}/MathGeoLib)
|
2019-08-22 11:39:21 +08:00
|
|
|
|
|
|
|
|
|
include(use_cm_module)
|
|
|
|
|
use_cm_module(Core)
|
2019-08-23 11:17:21 +08:00
|
|
|
|
use_cm_module(Platform)
|
2020-01-13 20:13:48 +08:00
|
|
|
|
use_cm_module(AssetsManage)
|
2020-06-08 19:12:00 +08:00
|
|
|
|
use_cm_module(SceneGraph)
|
2018-12-05 21:08:18 +08:00
|
|
|
|
|
2019-04-30 17:32:50 +08:00
|
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
2019-11-27 19:11:37 +08:00
|
|
|
|
include_directories(${ULRE_3RDPTY_ROOT_PATH}/jsoncpp/include)
|
2019-06-03 22:32:18 +08:00
|
|
|
|
add_subdirectory(3rdpty/jsoncpp)
|
2020-01-23 21:00:35 +08:00
|
|
|
|
SET(JSONCPP_LIBRARY jsoncpp_lib)
|
|
|
|
|
ELSE()
|
|
|
|
|
SET(JSONCPP_LIBRARY jsoncpp)
|
2018-11-30 17:25:58 +08:00
|
|
|
|
ENDIF()
|
|
|
|
|
|
2019-08-22 11:39:21 +08:00
|
|
|
|
SET(ULRE CMCore
|
2019-08-23 11:17:21 +08:00
|
|
|
|
CMPlatform
|
2020-01-13 20:13:48 +08:00
|
|
|
|
CMAssetsManage
|
2020-06-08 19:12:00 +08:00
|
|
|
|
CMSceneGraph
|
2019-06-03 22:32:18 +08:00
|
|
|
|
ULRE.Util
|
2019-05-30 19:24:31 +08:00
|
|
|
|
ULRE.RenderDevice.Vulkan
|
|
|
|
|
ULRE.SceneGraph
|
|
|
|
|
MathGeoLib
|
2020-01-23 21:00:35 +08:00
|
|
|
|
${JSONCPP_LIBRARY}
|
2019-05-30 19:24:31 +08:00
|
|
|
|
${RENDER_LIBRARY}
|
|
|
|
|
${Vulkan_LIBRARIES})
|
|
|
|
|
|
2019-11-27 19:11:37 +08:00
|
|
|
|
include_directories(${ULRE_3RDPTY_ROOT_PATH}/NvTriStrip)
|
2019-03-22 23:04:14 +08:00
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/inc)
|
|
|
|
|
|
|
|
|
|
SET(ROOT_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/inc)
|
2019-08-19 10:32:25 +08:00
|
|
|
|
|
2019-07-10 21:21:17 +08:00
|
|
|
|
SET(ULRE_RUNTIME_PATH ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
|
2018-11-27 20:03:07 +08:00
|
|
|
|
add_subdirectory(src)
|
|
|
|
|
|
2018-11-27 15:43:32 +08:00
|
|
|
|
add_subdirectory(example)
|