2023-02-06 07:59:37 -05:00
|
|
|
cmake_minimum_required(VERSION 3.7)
|
|
|
|
project(speederv2)
|
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
|
|
|
|
set(SOURCE_FILES
|
|
|
|
main.cpp
|
|
|
|
log.cpp
|
|
|
|
common.cpp
|
|
|
|
lib/fec.cpp
|
|
|
|
lib/rs.cpp
|
|
|
|
packet.cpp
|
|
|
|
delay_manager.cpp
|
|
|
|
fd_manager.cpp
|
|
|
|
connection.cpp
|
|
|
|
fec_manager.cpp
|
|
|
|
misc.cpp
|
|
|
|
tunnel_client.cpp
|
|
|
|
tunnel_server.cpp
|
|
|
|
my_ev.cpp
|
|
|
|
)
|
|
|
|
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-variable -Wno-unused-parameter -Wno-missing-field-initializers -O2 -g -fsanitize=address,undefined")
|
|
|
|
|
|
|
|
#target_include_directories(speederv2 PRIVATE .)
|
|
|
|
#set(CMAKE_LINK_LIBRARY_FLAG "-lrt")
|
|
|
|
add_executable(speederv2 ${SOURCE_FILES})
|
|
|
|
target_link_libraries(speederv2 rt)
|
|
|
|
target_link_libraries(speederv2 pthread)
|
|
|
|
include_directories(SYSTEM "libev")
|
2023-02-07 04:54:42 -05:00
|
|
|
include_directories(".")
|