Skip to content

Commit 1cf875b

Browse files
committed
chore: updated QHexView dependency configuration
1 parent 6edf3e7 commit 1cf875b

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ if(NOT TARGET redasm::redasm)
66
find_package(redasm REQUIRED)
77
endif()
88

9-
if(MSVC AND CMAKE_BUILD_TYPE STREQUAL "Debug")
10-
add_compile_options(/fsanitize=address)
11-
endif()
12-
139
include(cmake/Dependencies.cmake)
1410
setup_dependencies()
1511

cmake/Dependencies.cmake

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,16 @@ find_package(Qt6 REQUIRED COMPONENTS Widgets)
44
qt_standard_project_setup()
55

66
function(setup_dependencies)
7-
CPMAddPackage("gh:Dax89/QHexView#master")
7+
set(QHEXVIEW_OPTIONS "QHEXVIEW_BUILD_EXAMPLE OFF")
8+
9+
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
10+
list(APPEND QHEXVIEW_OPTIONS "QHEXVIEW_ASAN ON")
11+
endif()
12+
13+
CPMAddPackage(
14+
NAME QHexView
15+
GIT_TAG "master"
16+
GITHUB_REPOSITORY "Dax89/QHexView"
17+
OPTIONS ${QHEXVIEW_OPTIONS}
18+
)
819
endfunction()

0 commit comments

Comments
 (0)