-
Notifications
You must be signed in to change notification settings - Fork 17
/
CMakeLists.txt
29 lines (21 loc) · 1.01 KB
/
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
#
# project: oryol-samples
#
cmake_minimum_required(VERSION 2.8)
# include the fips main cmake file
get_filename_component(FIPS_ROOT_DIR "../fips" ABSOLUTE)
include("${FIPS_ROOT_DIR}/cmake/fips.cmake")
# this hack is required for turbobadger since we need to make
# sure that our overriden config.h is included
include_directories(../oryol-tbui/src/TBUI/tb)
# force ORYOL_SAMPLE_URL to location of oryol-samples webpage
set(ORYOL_SAMPLE_URL "http://floooh.github.com/oryol-samples/data/" CACHE STRING "Samples URL" FORCE)
fips_setup(PROJECT oryol-samples)
include_directories(src)
# helper macro to add a sample to the webpage (called from the sample cmake files)
file(REMOVE ${FIPS_DEPLOY_DIR}/oryol-samples-webpage/websamples.yml)
macro(oryol_add_web_sample name desc type image src)
file(APPEND ${FIPS_DEPLOY_DIR}/oryol-samples-webpage/websamples.yml "- name: ${name}\n desc: ${desc}\n type: ${type}\n image: ${CMAKE_CURRENT_LIST_DIR}/${image}\n src: ${src}\n")
endmacro()
fips_add_subdirectory(src)
fips_finish()