forked from googleprojectzero/winafl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
51 lines (34 loc) · 794 Bytes
/
CMakeLists.txt
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
cmake_minimum_required(VERSION 2.6)
project(test)
add_executable(test
test.cpp
)
project(test_gdiplus)
add_executable(test_gdiplus
gdiplus.cpp
)
target_link_libraries(test_gdiplus gdiplus)
project(afl-fuzz)
add_executable(afl-fuzz
afl-fuzz.c
)
project(WinAFL)
find_package(DynamoRIO)
if (NOT DynamoRIO_FOUND)
message(FATAL_ERROR "DynamoRIO package required to build")
endif(NOT DynamoRIO_FOUND)
if (STATIC_LIBRARY)
set(libtype STATIC)
else()
set(libtype SHARED)
endif ()
add_library(winafl ${libtype}
winafl.c
modules.c
)
configure_DynamoRIO_client(winafl)
use_DynamoRIO_extension(winafl drmgr)
use_DynamoRIO_extension(winafl drx)
use_DynamoRIO_extension(winafl drcontainers)
use_DynamoRIO_extension(winafl drreg)
use_DynamoRIO_extension(winafl drwrap)