2023-12-23 21:09:41 +01:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
|
|
|
|
include(ImHexPlugin)
|
|
|
|
|
|
|
|
if (NOT USE_SYSTEM_YARA)
|
|
|
|
add_subdirectory(${THIRD_PARTY_LIBS_FOLDER}/yara ${CMAKE_CURRENT_BINARY_DIR}/yara EXCLUDE_FROM_ALL)
|
|
|
|
set(YARA_LIBRARIES libyara)
|
|
|
|
else()
|
2024-01-26 12:13:22 +01:00
|
|
|
find_package(Yara REQUIRED)
|
2023-12-23 21:09:41 +01:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_imhex_plugin(
|
|
|
|
NAME
|
|
|
|
yara_rules
|
|
|
|
SOURCES
|
|
|
|
source/plugin_yara.cpp
|
|
|
|
|
2024-02-21 22:08:26 +01:00
|
|
|
source/content/yara_rule.cpp
|
2024-02-21 23:17:12 +01:00
|
|
|
source/content/data_information_sections.cpp
|
2023-12-23 21:09:41 +01:00
|
|
|
source/content/views/view_yara.cpp
|
|
|
|
INCLUDES
|
|
|
|
include
|
|
|
|
${YARA_INCLUDE_DIRS}
|
|
|
|
LIBRARIES
|
|
|
|
ui
|
2024-01-28 22:14:59 +01:00
|
|
|
fonts
|
2023-12-23 21:09:41 +01:00
|
|
|
${JTHREAD_LIBRARIES}
|
|
|
|
${YARA_LIBRARIES}
|
|
|
|
)
|