-
Notifications
You must be signed in to change notification settings - Fork 12
/
CMakeLists.txt
19 lines (15 loc) · 795 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cmake_minimum_required(VERSION 3.13)
project(gwlbtun)
set(CMAKE_CXX_STANDARD 17)
find_package(Threads)
set(CMAKE_CXX_FLAGS "-Wall -Wextra")
set(CMAKE_CXX_FLAGS_RELEASE "-Ofast")
set(CMAKE_CXX_FLAGS_DEBUG "-fstack-protector-all -fsanitize=address -pg -O0")
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "-lasan")
add_compile_options("")
# Debug or testing options.
#add_compile_options("-fstack-protector-all")
# add_compile_options("-fsanitize=address")
# add_link_options("-lasan")
add_executable(gwlbtun main.cpp UDPPacketReceiver.cpp UDPPacketReceiver.h GenevePacket.cpp GenevePacket.h TunInterface.cpp TunInterface.h utils.cpp utils.h PacketHeaderV4.cpp PacketHeaderV4.h PacketHeaderV6.cpp PacketHeaderV6.h GeneveHandler.cpp GeneveHandler.h)
target_link_libraries (gwlbtun ${CMAKE_THREAD_LIBS_INIT})