mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-21 12:40:04 +00:00
Bot: add VMBoxGen as a dependency
This commit is contained in:
parent
f649ca4a56
commit
134f1fee37
@ -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>")
|
||||
|
||||
|
@ -20,4 +20,4 @@ if(LAIKA_OBFUSCATE)
|
||||
COMMAND VMBoxGen ${LAIKA_VMBOXCONFIG}
|
||||
COMMENT "Generating VMBox data & keys..."
|
||||
)
|
||||
endif()
|
||||
endif ()
|
Loading…
Reference in New Issue
Block a user