mirror of
https://github.com/hasherezade/pe-bear.git
synced 2026-10-11 21:49:54 +00:00
[NOBIN] Updated CMakeList files
This commit is contained in:
+8
-3
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user