introduce capstone
This commit is contained in:
+14
-2
@@ -4,6 +4,18 @@ project(weee CXX)
|
||||
set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
include_directories(external/ELFIO)
|
||||
option(BUILD_SHARED_LIBS OFF)
|
||||
|
||||
add_executable(weee main.cpp)
|
||||
include_directories(external/ELFIO)
|
||||
include_directories(external/capstone/include)
|
||||
|
||||
if(WIN32)
|
||||
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
||||
endif()
|
||||
|
||||
set(CAPSTONE_ARCHITECTURE_DEFAULT OFF)
|
||||
set(CAPSTONE_PPC_SUPPORT ON)
|
||||
add_subdirectory(external/capstone)
|
||||
|
||||
add_executable(weee main.cpp)
|
||||
target_link_libraries(weee PUBLIC capstone)
|
||||
Vendored
+1
-1
@@ -36,7 +36,7 @@ project(capstone VERSION ${PROJECT_VERSION_BASE})
|
||||
# Print the values of PROJECT_VERSION and PROJECT_VERSION_BASE
|
||||
message(STATUS "PROJECT_VERSION: ${CPACK_PACKAGE_VERSION} CAPSTONE_VERSION: ${PROJECT_VERSION_BASE}")
|
||||
|
||||
set(UNIX_COMPILER_OPTIONS -Werror -Wall -Warray-bounds -Wshift-negative-value -Wreturn-type -Wformat -Wmissing-braces -Wunused-function -Warray-bounds -Wunused-variable -Wparentheses -Wint-in-bool-context -Wmisleading-indentation)
|
||||
set(UNIX_COMPILER_OPTIONS -Wall -Warray-bounds -Wshift-negative-value -Wreturn-type -Wformat -Wmissing-braces -Wunused-function -Warray-bounds -Wunused-variable -Wparentheses -Wint-in-bool-context -Wmisleading-indentation)
|
||||
|
||||
# maybe-uninitialized is only supported by newer versions of GCC.
|
||||
# Unfortunately, it is pretty unreliable and reports wrong results.
|
||||
|
||||
Reference in New Issue
Block a user