tor_multipath_voip/CMakeLists.txt
2019-02-14 17:41:52 +01:00

42 lines
No EOL
904 B
CMake

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
src/tor_ctl.h
src/tor_ctl.c
src/donar_client.h
src/donar_client.c
src/donar_server.h
src/donar_server.c
src/evt_core.h
src/evt_core.c
src/algo_skel.h
src/algo_skel.c
src/algo_naive.c
src/utils.h
src/utils.c
src/packet.h
src/packet.c
)
add_executable(donar ${CSOURCES} src/donar.c)
add_executable(measlat ${CSOURCES} src/meas_lat.c)
find_package(PkgConfig REQUIRED)
pkg_search_module(GLIB REQUIRED glib-2.0)
target_include_directories(donar PRIVATE ${GLIB_INCLUDE_DIRS})
target_link_libraries(donar ${GLIB_LDFLAGS})
target_include_directories(measlat PRIVATE ${GLIB_INCLUDE_DIRS})
target_link_libraries(measlat ${GLIB_LDFLAGS})
install(TARGETS donar measlat
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib)