2020-10-28 23:32:45 +00:00
|
|
|
# Non functional cmake build file used to provide Android Studio editor support to the project.
|
2019-09-03 00:31:51 +00:00
|
|
|
cmake_minimum_required(VERSION 3.6)
|
|
|
|
project(godot)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
|
|
|
|
set(GODOT_ROOT_DIR ../../../..)
|
2024-05-19 22:48:30 +00:00
|
|
|
set(ANDROID_ROOT_DIR "${GODOT_ROOT_DIR}/platform/android" CACHE STRING "")
|
2024-04-20 17:24:11 +00:00
|
|
|
set(OPENXR_INCLUDE_DIR "${GODOT_ROOT_DIR}/thirdparty/openxr/include" CACHE STRING "")
|
2019-09-03 00:31:51 +00:00
|
|
|
|
|
|
|
# Get sources
|
|
|
|
file(GLOB_RECURSE SOURCES ${GODOT_ROOT_DIR}/*.c**)
|
|
|
|
file(GLOB_RECURSE HEADERS ${GODOT_ROOT_DIR}/*.h**)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS})
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
SYSTEM PUBLIC
|
2024-05-19 22:48:30 +00:00
|
|
|
${GODOT_ROOT_DIR}
|
2024-04-20 17:24:11 +00:00
|
|
|
${ANDROID_ROOT_DIR}
|
|
|
|
${OPENXR_INCLUDE_DIR})
|
2021-06-25 13:45:16 +00:00
|
|
|
|
2022-10-19 04:39:43 +00:00
|
|
|
add_definitions(-DUNIX_ENABLED -DVULKAN_ENABLED -DANDROID_ENABLED -DGLES3_ENABLED -DTOOLS_ENABLED)
|