mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-01-19 14:29:34 +08:00
add cmake
This commit is contained in:
parent
8ceaf27eda
commit
87b0db8862
32
CMakeLists.txt
Normal file
32
CMakeLists.txt
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
#note: experimental
|
||||||
|
cmake_minimum_required(VERSION 3.7)
|
||||||
|
project(udp2raw)
|
||||||
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
|
|
||||||
|
set(SOURCE_FILES
|
||||||
|
main.cpp
|
||||||
|
lib/md5.cpp
|
||||||
|
lib/pbkdf2-sha1.cpp
|
||||||
|
lib/pbkdf2-sha256.cpp
|
||||||
|
encrypt.cpp
|
||||||
|
log.cpp
|
||||||
|
network.cpp
|
||||||
|
common.cpp
|
||||||
|
connection.cpp
|
||||||
|
misc.cpp
|
||||||
|
fd_manager.cpp
|
||||||
|
client.cpp
|
||||||
|
server.cpp
|
||||||
|
lib/aes_faster_c/aes.cpp
|
||||||
|
lib/aes_faster_c/wrapper.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")
|
||||||
|
|
||||||
|
add_executable(udp2raw ${SOURCE_FILES})
|
||||||
|
target_link_libraries(udp2raw rt)
|
||||||
|
target_link_libraries(udp2raw pthread)
|
||||||
|
include_directories(SYSTEM "libev")
|
||||||
|
include_directories(".")
|
Loading…
x
Reference in New Issue
Block a user