forked from hasherezade/thread_namecalling
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
31 lines (23 loc) · 804 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
31 lines (23 loc) · 804 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
cmake_minimum_required ( VERSION 3.0 )
project ( thread_namecalling_demo )
option( USE_NEW_THREADS "Inject into newly created threads (rather than to existing ones)" OFF )
option( USE_OLD_APC_API "Use the old API for APC injections" OFF )
option( USE_NEW_BUFFER "Copy injected buffer into a newly allocated memory area" OFF )
option( USE_ROP "Use ROP to call VirtualProtect/VirtualAlloc" OFF )
if(USE_NEW_THREADS)
add_compile_definitions(USE_NEW_THREADS)
endif()
if(USE_OLD_APC_API)
add_compile_definitions(USE_OLD_APC_API)
endif()
if(USE_NEW_BUFFER)
add_compile_definitions(USE_NEW_BUFFER)
endif()
if(USE_ROP)
add_compile_definitions(USE_ROP)
endif()
# Add sub-directories
#
add_subdirectory ( thread_namecaller )
add_subdirectory ( thread_receive )
add_subdirectory ( dll_inj )