From a527a7f0b028da6f41aebcaf4cdb5121ab093408 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 16 Dec 2024 21:32:19 +0100 Subject: [PATCH] patterns: Updated pattern language --- CMakeLists.txt | 7 +++++-- lib/external/pattern_language | 2 +- tests/CMakeLists.txt | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c3ad66f23..e4faa87b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,8 +73,11 @@ addPluginDirectories() # Add unit tests if (IMHEX_ENABLE_UNIT_TESTS) - enable_testing() - add_subdirectory(tests EXCLUDE_FROM_ALL) + if (NOT TARGET unit_tests) + enable_testing() + add_custom_target(unit_tests) + add_subdirectory(tests EXCLUDE_FROM_ALL) + endif () endif () # Configure more resources that will be added to the install package diff --git a/lib/external/pattern_language b/lib/external/pattern_language index 6fbcbb1f8..3855f22c2 160000 --- a/lib/external/pattern_language +++ b/lib/external/pattern_language @@ -1 +1 @@ -Subproject commit 6fbcbb1f8af937266b16738ebc194e657e09640a +Subproject commit 3855f22c2381783a8709663fc3aaa6d6899e69b1 diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 81dade9b7..832206c1f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,6 +1,6 @@ project(unit_tests) -add_custom_target(unit_tests DEPENDS imhex_all helpers algorithms plugins) +add_dependencies(unit_tests imhex_all helpers algorithms plugins) add_subdirectory(common) target_compile_definitions(tests_common PUBLIC IMHEX_PROJECT_NAME="${PROJECT_NAME}")