From aaa4d1313fcd489c087884a3a49affb9a543e87d Mon Sep 17 00:00:00 2001 From: hasherezade Date: Fri, 11 Sep 2026 17:14:07 +0200 Subject: [PATCH] [NOBIN] Updated CMakeList files --- CMakeLists.txt | 11 ++++++++--- disasm/CMakeLists.txt | 2 +- pe-bear/CMakeLists.txt | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e5948aa..05e0571 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,12 +71,17 @@ if(CAPSTONE_ARM_SUPPORT) add_compile_definitions(USE_ARM32) endif() +# Capstone v6 builds its fuzzer unconditionally; keep it out of 'all' +if(TARGET fuzz_disasm) + set_target_properties(fuzz_disasm PROPERTIES EXCLUDE_FROM_ALL TRUE) +endif() + # Add sub-directories # # libs add_subdirectory(${M_CAPSTONE}) -set(CAPSTONE_LIB $ CACHE PATH "Capstone library path") +set(CAPSTONE_LIB $ CACHE PATH "Capstone library path") add_subdirectory(${M_BEARPARSER}) set(PARSER_LIB $ CACHE PATH "BearParser library path") @@ -90,6 +95,6 @@ set(SIGFIND_LIB $ CACHE PATH "SigFinder library path") # executables add_subdirectory(pe-bear) -add_dependencies(libdisasm bearparser capstone) -add_dependencies(PE-bear bearparser sig_finder libdisasm capstone) +add_dependencies(libdisasm bearparser capstone_static) +add_dependencies(PE-bear bearparser sig_finder libdisasm capstone_static) diff --git a/disasm/CMakeLists.txt b/disasm/CMakeLists.txt index 4b0b107..42df913 100644 --- a/disasm/CMakeLists.txt +++ b/disasm/CMakeLists.txt @@ -71,7 +71,7 @@ endif() if (USE_UDIS86) target_link_libraries( ${PROJECT_NAME} ${PARSER_LIB} ${UDIS86_LIB} ) else() - target_link_libraries( ${PROJECT_NAME} ${PARSER_LIB} ${CAPSTONE_LIB} ) + target_link_libraries( ${PROJECT_NAME} ${PARSER_LIB} capstone_static ) endif() if(USE_QT4) diff --git a/pe-bear/CMakeLists.txt b/pe-bear/CMakeLists.txt index 3a3c4fd..77559b6 100644 --- a/pe-bear/CMakeLists.txt +++ b/pe-bear/CMakeLists.txt @@ -334,7 +334,7 @@ ELSE() ENDIF() target_link_libraries( ${PROJECT_NAME} ${SIGFIND_LIB} ${PARSER_LIB} ) -target_link_libraries (${PROJECT_NAME} ${DISASM_LIB} ${CAPSTONE_LIB} ) +target_link_libraries (${PROJECT_NAME} ${DISASM_LIB} capstone_static ) if(USE_QT4) target_link_libraries (${PROJECT_NAME} ${QT_QTGUI_LIBRARIES} ${QT_QTCORE_LIBRARIES})