-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (35 loc) · 1.06 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
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(krack)
option (Is_Client "Generate client" ON)
option (Is_AP "Generate AP" ON)
option (Is_Adversary "Generate Adversary" ON)
SET(CMAKE_CXX_COMPILER "g++")
SET(CMAKE_CXX_FLAGS "-std=c++11 -g")
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include)
if (Is_Client)
ADD_EXECUTABLE(
Client
${PROJECT_SOURCE_DIR}/src/client.cpp
${PROJECT_SOURCE_DIR}/src/tcp_client.cpp
${PROJECT_SOURCE_DIR}/src/rander.cpp
)
endif (Is_Client)
if (Is_AP)
ADD_EXECUTABLE(
AP
${PROJECT_SOURCE_DIR}/src/ap.cpp
${PROJECT_SOURCE_DIR}/src/tcp_server.cpp
${PROJECT_SOURCE_DIR}/src/rander.cpp
)
endif (Is_AP)
if (Is_Adversary)
ADD_EXECUTABLE(
Adversary
${PROJECT_SOURCE_DIR}/src/adversary.cpp
${PROJECT_SOURCE_DIR}/src/tcp_adversary.cpp
${PROJECT_SOURCE_DIR}/src/attacker.cpp
${PROJECT_SOURCE_DIR}/src/tcp_client.cpp
)
endif (Is_Adversary)