2019-02-08 13:28:39 +00:00
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
project(donar)
|
|
|
|
|
|
|
|
list(APPEND CSOURCES
|
|
|
|
src/net_tools.h
|
|
|
|
src/net_tools.c
|
|
|
|
src/socks5.h
|
|
|
|
src/socks5.c
|
|
|
|
src/tor_os.h
|
|
|
|
src/tor_os.c
|
2019-02-08 16:37:02 +00:00
|
|
|
src/tor_ctl.h
|
|
|
|
src/tor_ctl.c
|
2019-02-11 09:23:38 +00:00
|
|
|
src/donar_client.h
|
|
|
|
src/donar_client.c
|
|
|
|
src/donar_server.h
|
|
|
|
src/donar_server.c
|
2019-02-11 17:56:52 +00:00
|
|
|
src/evt_core.h
|
|
|
|
src/evt_core.c
|
2019-02-11 21:40:00 +00:00
|
|
|
src/algo_naive.c
|
2019-02-12 10:17:37 +00:00
|
|
|
src/utils.h
|
|
|
|
src/utils.c
|
2019-02-14 12:50:43 +00:00
|
|
|
src/packet.h
|
|
|
|
src/packet.c
|
2019-02-19 09:32:33 +00:00
|
|
|
src/url.h
|
|
|
|
src/url.c
|
2019-02-19 18:15:37 +00:00
|
|
|
src/donar_init.h
|
|
|
|
src/donar_init.c
|
2019-05-06 10:02:25 +00:00
|
|
|
src/algo_dup2.c
|
2019-08-09 15:01:28 +00:00
|
|
|
src/algo_thunder.c
|
2019-03-07 15:57:02 +00:00
|
|
|
src/algo_utils.h
|
|
|
|
src/algo_utils.c
|
2019-04-24 14:23:41 +00:00
|
|
|
src/proxy.h
|
|
|
|
src/proxy.c
|
2019-05-07 17:18:27 +00:00
|
|
|
src/timer.h
|
|
|
|
src/timer.c
|
2019-05-27 15:32:00 +00:00
|
|
|
src/capture_traffic.h
|
|
|
|
src/capture_traffic.c
|
2019-06-03 12:32:52 +00:00
|
|
|
src/cap_utils.h
|
|
|
|
src/cap_utils.c
|
2019-09-23 14:32:59 +00:00
|
|
|
src/measure.h
|
|
|
|
src/measure.c
|
2019-10-07 14:07:35 +00:00
|
|
|
src/algo_lightning.c
|
2019-02-08 13:28:39 +00:00
|
|
|
)
|
|
|
|
|
2019-02-12 18:40:12 +00:00
|
|
|
add_executable(donar ${CSOURCES} src/donar.c)
|
2019-02-14 16:41:52 +00:00
|
|
|
add_executable(measlat ${CSOURCES} src/meas_lat.c)
|
2019-02-22 15:01:22 +00:00
|
|
|
add_executable(udpecho ${CSOURCES} src/udp_echo.c)
|
2019-03-11 09:45:21 +00:00
|
|
|
add_executable(torecho ${CSOURCES} src/tor_echo.c)
|
2019-05-28 15:15:37 +00:00
|
|
|
add_executable(capdiff ${CSOURCES} src/capdiff.c)
|
2019-06-03 12:32:52 +00:00
|
|
|
add_executable(capreplay ${CSOURCES} src/capreplay.c)
|
2019-09-16 12:40:58 +00:00
|
|
|
add_executable(donar_unit_test ${CSOURCES} src/test.c)
|
2019-02-08 13:28:39 +00:00
|
|
|
|
2019-02-11 17:56:52 +00:00
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
pkg_search_module(GLIB REQUIRED glib-2.0)
|
2019-02-14 16:41:52 +00:00
|
|
|
|
2019-02-12 18:40:12 +00:00
|
|
|
target_include_directories(donar PRIVATE ${GLIB_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(donar ${GLIB_LDFLAGS})
|
2019-02-11 17:56:52 +00:00
|
|
|
|
2019-02-14 16:41:52 +00:00
|
|
|
target_include_directories(measlat PRIVATE ${GLIB_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(measlat ${GLIB_LDFLAGS})
|
2019-02-11 17:56:52 +00:00
|
|
|
|
2019-02-22 15:01:22 +00:00
|
|
|
target_include_directories(udpecho PRIVATE ${GLIB_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(udpecho ${GLIB_LDFLAGS})
|
|
|
|
|
2019-03-11 09:45:21 +00:00
|
|
|
target_include_directories(torecho PRIVATE ${GLIB_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(torecho ${GLIB_LDFLAGS})
|
|
|
|
|
2019-05-28 15:15:37 +00:00
|
|
|
target_include_directories(capdiff PRIVATE ${GLIB_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(capdiff ${GLIB_LDFLAGS})
|
|
|
|
|
2019-06-03 12:32:52 +00:00
|
|
|
target_include_directories(capreplay PRIVATE ${GLIB_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(capreplay ${GLIB_LDFLAGS})
|
|
|
|
|
2019-09-16 12:40:58 +00:00
|
|
|
target_include_directories(donar_unit_test PRIVATE ${GLIB_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(donar_unit_test ${GLIB_LDFLAGS})
|
|
|
|
|
|
|
|
install(TARGETS donar measlat udpecho torecho capdiff capreplay donar_unit_test
|
2019-02-08 13:28:39 +00:00
|
|
|
RUNTIME DESTINATION bin
|
2019-05-07 17:18:27 +00:00
|
|
|
LIBRARY DESTINATION lib)
|