From 134f1fee37b6f2086fa73b77e310aaef28120571 Mon Sep 17 00:00:00 2001 From: CPunch Date: Sun, 15 May 2022 15:27:54 -0500 Subject: [PATCH] Bot: add VMBoxGen as a dependency --- bot/CMakeLists.txt | 5 +++++ tools/vmboxgen/CMakeLists.txt | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bot/CMakeLists.txt b/bot/CMakeLists.txt index b6e30da..1be7036 100644 --- a/bot/CMakeLists.txt +++ b/bot/CMakeLists.txt @@ -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 "$<$:DEBUG>") diff --git a/tools/vmboxgen/CMakeLists.txt b/tools/vmboxgen/CMakeLists.txt index 472a443..5146de1 100644 --- a/tools/vmboxgen/CMakeLists.txt +++ b/tools/vmboxgen/CMakeLists.txt @@ -20,4 +20,4 @@ if(LAIKA_OBFUSCATE) COMMAND VMBoxGen ${LAIKA_VMBOXCONFIG} COMMENT "Generating VMBox data & keys..." ) -endif() \ No newline at end of file +endif () \ No newline at end of file