2020-10-29 00:32:45 +01:00
|
|
|
# Non functional cmake build file used to provide Android Studio editor support to the project.
|
2019-09-03 02:31:51 +02: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 ../../../..)
|
|
|
|
|
|
|
|
# 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
|
|
|
|
${GODOT_ROOT_DIR}
|
|
|
|
${GODOT_ROOT_DIR}/modules/gdnative/include)
|
2021-06-25 15:45:16 +02:00
|
|
|
|
2023-01-19 01:12:13 +01:00
|
|
|
add_definitions(-DUNIX_ENABLED -DANDROID_ENABLED -DTOOLS_ENABLED)
|