patterns: Updated pattern language

This commit is contained in:
WerWolv
2024-12-16 21:32:19 +01:00
parent d78d955d11
commit a527a7f0b0
3 changed files with 7 additions and 4 deletions

View File

@@ -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

View File

@@ -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}")