Created
October 7, 2018 12:32
-
-
Save jeremyjh/8e1a73a874fde95a0a2f532e4bbb38d4 to your computer and use it in GitHub Desktop.
CMake script for building Godot (v2) in submodule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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