Skip to content

Commit

Permalink
Make TBUI search path absolute, so it also works when imported
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Mar 13, 2016
1 parent aa54975 commit 0cc9f27
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fips-include.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# absolute path to Oryol
set(ORYOL_DIR ${CMAKE_CURRENT_LIST_DIR})

# cmake options
set(ORYOL_SAMPLE_URL "http://floooh.github.com/oryol/" CACHE STRING "Sample data URL")
set(ORYOL_SYNTH_NUM_VOICES "2" CACHE STRING "Synth module: number of voices")
Expand All @@ -17,7 +20,7 @@ endif()

# for TurboBadger UI support, override the search path for the
# tb_config.h overriden header file
include_directories(code/Modules/TBUI/tb)
include_directories(${ORYOL_DIR}/code/Modules/TBUI/tb)

# profiling enabled?
if (FIPS_PROFILING)
Expand Down Expand Up @@ -194,3 +197,4 @@ endmacro()
macro(oryol_shader shd)
fips_generate(TYPE Shader FROM ${shd} OUT_OF_SOURCE)
endmacro()

0 comments on commit 0cc9f27

Please sign in to comment.