From 974a6bcd56da811bd9e1b61d77378c86e6fae406 Mon Sep 17 00:00:00 2001 From: Dobiasd Date: Tue, 16 Apr 2024 08:46:51 +0200 Subject: [PATCH] fix cmakelists --- test/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b5cbaf45..6bd8ec03 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -8,6 +8,10 @@ add_custom_command ( OUTPUT test_model_exhaustive.keras COMMAND bash -c "${Python3_EXECUTABLE} ${FDEEP_TOP_DIR}/keras_export/generate_test_models.py exhaustive test_model_exhaustive.keras" WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/) +add_custom_command ( OUTPUT test_model_embedding.keras + COMMAND bash -c "${Python3_EXECUTABLE} ${FDEEP_TOP_DIR}/keras_export/generate_test_models.py embedding test_model_embedding.keras" + WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/) + add_custom_command ( OUTPUT test_model_variable.keras COMMAND bash -c "${Python3_EXECUTABLE} ${FDEEP_TOP_DIR}/keras_export/generate_test_models.py variable test_model_variable.keras" WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/) @@ -25,8 +29,9 @@ add_custom_command ( OUTPUT test_model_exhaustive.json COMMAND bash -c "${Python3_EXECUTABLE} ${FDEEP_TOP_DIR}/keras_export/convert_model.py test_model_exhaustive.keras test_model_exhaustive.json" WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/) -add_custom_command ( OUTPUT test_model_embedding.keras - COMMAND bash -c "${Python3_EXECUTABLE} ${FDEEP_TOP_DIR}/keras_export/generate_test_models.py embedding test_model_embedding.keras" +add_custom_command ( OUTPUT test_model_embedding.json + DEPENDS test_model_embedding.keras + COMMAND bash -c "${Python3_EXECUTABLE} ${FDEEP_TOP_DIR}/keras_export/convert_model.py test_model_embedding.keras test_model_embedding.json" WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/) add_custom_command ( OUTPUT test_model_variable.json