-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
53 lines (41 loc) · 1.36 KB
/
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
51
52
53
cmake_minimum_required(VERSION 3.6)
project(fingerprinting_poc)
# Setup
set(GCCWARNINGS
"-Wall"
)
set(CMAKE_C_FLAGS "${GCCWARNINGS} ${CMAKE_C_FLAGS}")
# Sources
set(FINGERPRINT_FUNCTION_SOURCES
src/fingerprint_functions/presence_in_reply.c
src/fingerprint_functions/presence_in_reply.h
src/fingerprint_functions/http_header_ordering.c
src/fingerprint_functions/http_header_ordering.h
src/fingerprint_functions/banner_report.c
src/fingerprint_functions/banner_report.h
src/fingerprint_functions/fingerprint_functions.c
src/fingerprint_functions/fingerprint_functions.h)
set(RESOURCE_SOURCES
src/resources/http_headers.c
src/resources/http_headers.h
src/resources/array.c
src/resources/array.h)
set(SIGNATURES_SOURCES
src/signatures/signatures.c
src/signatures/signatures.h)
set(SOURCE_FILES
src/main.c
src/debug.h
${RESOURCE_SOURCES}
${SIGNATURES_SOURCES}
${FINGERPRINT_FUNCTION_SOURCES})
add_executable(fingerprinting_poc ${SOURCE_FILES})
# Libraries
find_package (LibXml2)
if(LIBXML2_FOUND)
include_directories(${LIBXML2_INCLUDE_DIR})
else()
MESSAGE("FATAL_ERROR could not find LIBXML2")
endif()
target_link_libraries(fingerprinting_poc curl)
target_link_libraries (fingerprinting_poc ${LIBXML2_LIBRARIES})