build system: add ability to specifiy config file
This commit is contained in:
parent
d7a0b46006
commit
6d323aa485
1 changed files with 51 additions and 22 deletions
|
|
@ -9,6 +9,11 @@ function(define_if target variable)
|
|||
endif ()
|
||||
endfunction()
|
||||
|
||||
if (NOT ${EXTERNAL_CONFIG_FILE} STREQUAL "")
|
||||
message(STATUS "Config file: ${EXTERNAL_CONFIG_FILE}")
|
||||
target_compile_definitions("raylib" PUBLIC EXTERNAL_CONFIG_FILE=<${EXTERNAL_CONFIG_FILE}>)
|
||||
endif ()
|
||||
|
||||
if (${CUSTOMIZE_BUILD})
|
||||
target_compile_definitions("raylib" PUBLIC EXTERNAL_CONFIG_FLAGS)
|
||||
define_if("raylib" USE_AUDIO)
|
||||
|
|
|
|||
Loading…
Reference in a new issue