1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-10-13 19:20:10 +00:00

VMBoxGen: generate lboxconfig.h post build if LAIKA_OBFUSCATE

This commit is contained in:
2022-05-11 14:50:42 -05:00
parent c4fc1a1fe6
commit 36aefba340
5 changed files with 33 additions and 19 deletions

View File

@@ -12,3 +12,12 @@ target_link_libraries(VMBoxGen PUBLIC LaikaLib)
# add the 'DEBUG' preprocessor definition if we're compiling as Debug
target_compile_definitions(VMBoxGen PUBLIC "$<$<CONFIG:Debug>:DEBUG>")
# generate the VMBOXCONFIG file
if(LAIKA_OBFUSCATE)
add_custom_command(TARGET VMBoxGen POST_BUILD
DEPENDS VMBoxGen
COMMAND VMBoxGen ${LAIKA_VMBOXCONFIG}
COMMENT "Generating VMBox data & keys..."
)
endif()