[NOBIN] Updated CMakeList files

This commit is contained in:
hasherezade
2026-09-11 17:14:07 +02:00
parent 467c64b9ea
commit aaa4d1313f
3 changed files with 10 additions and 5 deletions
+8 -3
View File
@@ -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 $<TARGET_FILE:capstone> CACHE PATH "Capstone library path")
set(CAPSTONE_LIB $<TARGET_FILE:capstone_static> CACHE PATH "Capstone library path")
add_subdirectory(${M_BEARPARSER})
set(PARSER_LIB $<TARGET_FILE:bearparser> CACHE PATH "BearParser library path")
@@ -90,6 +95,6 @@ set(SIGFIND_LIB $<TARGET_FILE:sig_finder> 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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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})