-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
21 lines (16 loc) · 796 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
21 lines (16 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cmake_minimum_required(VERSION 3.16)
project(EngineDemo)
find_package(Git QUIET)
execute_process(COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
RESULT_VARIABLE GIT_SUBMODULE_RESULT)
if(NOT GIT_SUBMODULE_RESULT EQUAL "0")
message(WARNING "Could not download Engine submodule. Check git install and internet connection.")
endif()
set(ENGINE_ASSETS_DIR_COPY TRUE)
set(ENGINE_ASSETS_DIR_COPY_PATH ${PROJECT_SOURCE_DIR})
if ((CMAKE_SYSTEM_NAME STREQUAL "Linux") OR (CMAKE_SYSTEM_NAME STREQUAL "Windows") OR (CMAKE_SYSTEM_NAME STREQUAL "Darwin"))
set(ENGINE_DESKTOP_RUNTIME_DIR ${PROJECT_SOURCE_DIR})
set(ENGINE_DESKTOP_EXECUTABLE_NAME ${CMAKE_PROJECT_NAME})
endif()
add_subdirectory(Engine)