-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
34 lines (28 loc) · 846 Bytes
/
CMakeLists.txt
File metadata and controls
34 lines (28 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
cmake_minimum_required(VERSION 3.27)
project(strikeout)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Include IDA SDK bootstrap
include($ENV{IDASDK}/ida-cmake/bootstrap.cmake)
find_package(idasdk REQUIRED)
# Add idacpp library
add_subdirectory($ENV{IDASDK}/include/idacpp ${CMAKE_CURRENT_BINARY_DIR}/idacpp)
# Add plugin
ida_add_plugin(strikeout
SOURCES
plugin.cpp
plugin.h
utils.hpp
storage.hpp
METADATA_JSON
ida-plugin.json
DEBUG_ARGS
"-t" "-z10000"
)
target_link_libraries(strikeout PRIVATE idacpp::idacpp)
# Add test executables
file(GLOB TEST_SOURCES "test/*.c")
foreach(TEST_SOURCE ${TEST_SOURCES})
get_filename_component(TEST_NAME ${TEST_SOURCE} NAME_WE)
add_executable(${TEST_NAME} ${TEST_SOURCE})
endforeach()