Skip to content

Instantly share code, notes, and snippets.

@jeremyjh
Created October 7, 2018 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyjh/8e1a73a874fde95a0a2f532e4bbb38d4 to your computer and use it in GitHub Desktop.
Save jeremyjh/8e1a73a874fde95a0a2f532e4bbb38d4 to your computer and use it in GitHub Desktop.
CMake script for building Godot (v2) in submodule
cmake_minimum_required(VERSION 3.5)
project(godot)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
include_directories(./godot
./godot/core/
./godot/core/math/)
file (GLOB CPP_FILES godot/**/*.cpp)
file (GLOB H_FILES godot/**/*.h)
set (SOURCE_FILES ${CPP_FILES} ${H_FILES})
add_executable(godot ${SOURCE_FILES})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment