2024-01-21 18:39:13 +01:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
|
|
|
|
include(ImHexPlugin)
|
|
|
|
|
|
|
|
if (USE_SYSTEM_EDLIB)
|
|
|
|
find_package(edlib REQUIRED)
|
|
|
|
else()
|
2024-01-21 19:55:10 +01:00
|
|
|
set(BUILD_TESTING OFF CACHE BOOL "" FORCE)
|
2024-01-21 18:39:13 +01:00
|
|
|
add_subdirectory(${THIRD_PARTY_LIBS_FOLDER}/edlib ${CMAKE_CURRENT_BINARY_DIR}/edlib EXCLUDE_FROM_ALL)
|
2024-01-29 21:18:32 +01:00
|
|
|
enableUnityBuild(edlib)
|
2024-01-21 18:39:13 +01:00
|
|
|
endif()
|
|
|
|
|
|
|
|
add_imhex_plugin(
|
|
|
|
NAME
|
|
|
|
diffing
|
|
|
|
SOURCES
|
|
|
|
source/plugin_diffing.cpp
|
|
|
|
|
|
|
|
source/content/diffing_algorithms.cpp
|
|
|
|
source/content/views/view_diff.cpp
|
|
|
|
INCLUDES
|
|
|
|
include
|
|
|
|
LIBRARIES
|
|
|
|
ui
|
2024-01-28 22:14:59 +01:00
|
|
|
fonts
|
2024-01-21 18:39:13 +01:00
|
|
|
edlib
|
|
|
|
)
|