22 lines
688 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.7)
project(udp2raw_tunnel)
set(CMAKE_CXX_STANDARD 11)
2017-09-19 02:35:08 -05:00
set_source_files_properties(lib/aes_faster_c/aes.c lib/aes_faster_c/wrapper.c lib/md5.c PROPERTIES LANGUAGE CXX )
set(SOURCE_FILES
2017-09-19 02:35:08 -05:00
lib/aes_faster_c/aes.c
lib/aes_faster_c/wrapper.c
lib/md5.c
common.cpp
encrypt.cpp
log.cpp
main.cpp
network.cpp
)
2017-08-18 19:35:05 +08:00
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-variable -Wno-unused-parameter -Wno-missing-field-initializers -static")
2017-08-11 16:17:26 +08:00
#set(CMAKE_LINK_LIBRARY_FLAG "-lrt")
2017-08-18 19:35:05 +08:00
add_executable(udp2raw_cmake ${SOURCE_FILES})
target_link_libraries(udp2raw_cmake rt)
2017-09-10 11:31:55 -05:00
target_link_libraries(udp2raw_cmake pthread)