-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
36 lines (28 loc) · 996 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
cmake_minimum_required(VERSION 2.8.8)
project(moon)
find_library(YAML yaml)
add_subdirectory("vendor/sil")
# cmake doesn't like relative paths for include dirs, so we'll need the absolute
# path instead
get_filename_component(SIL_INCLUDE_DIR "vendor/sil/include" ABSOLUTE)
add_subdirectory("vendor/soil")
add_subdirectory("vendor/gorilla-audio/build")
#add_subdirectory("vendor/glm")
option(freetype-gl_BUILD_DEMOS OFF)
option(freetype-gl_BUILD_APIDOC OFF)
add_subdirectory("vendor/freetype-gl")
option(BUILD_SHARED_LIBS ON)
set(BUILD_SHARED_LIBS ON)
option(GLFW_BUILD_EXAMPLES OFF)
option(GLFW_BUILD_TESTS OFF)
add_subdirectory("vendor/glfw")
option(RAKE_VERBOSE OFF)
set(RAKE_VERBOSE_FLAG "")
if(RAKE_VERBOSE)
set(RAKE_VERBOSE_FLAG "--verbose")
endif(RAKE_VERBOSE)
add_custom_target(moon-mruby ALL
DEPENDS SIL SOIL glfw freetype-gl gorilla
COMMAND rake ${RAKE_VERBOSE_FLAG} MRUBY_CONFIG="${CMAKE_SOURCE_DIR}/mrb_config.rb"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/vendor/mruby"
)