1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-12-25 12:20:05 +00:00

Bot: add VMBoxGen as a dependency

This commit is contained in:
CPunch 2022-05-15 15:27:54 -05:00
parent f649ca4a56
commit 134f1fee37
2 changed files with 6 additions and 1 deletions

View File

@ -24,6 +24,11 @@ endif ()
add_executable(LaikaBot ${BOTSOURCE} ${BOTHEADERS} ${BOTPLATFORMSOURCE})
target_link_libraries(LaikaBot PUBLIC LaikaLib ${BOTPLATFORMLIBS})
# make sure lboxconfig.h is generated before building
if(LAIKA_OBFUSCATE)
add_dependencies(LaikaBot VMBoxGen)
endif ()
# add the 'DEBUG' preprocessor definition if we're compiling as Debug
target_compile_definitions(LaikaBot PUBLIC "$<$<CONFIG:Debug>:DEBUG>")

View File

@ -20,4 +20,4 @@ if(LAIKA_OBFUSCATE)
COMMAND VMBoxGen ${LAIKA_VMBOXCONFIG}
COMMENT "Generating VMBox data & keys..."
)
endif()
endif ()