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_naive.c ) add_executable(donar-proxy ${CSOURCES} src/donar_proxy.c) find_package(PkgConfig REQUIRED) pkg_search_module(GLIB REQUIRED glib-2.0) target_include_directories(donar-proxy PRIVATE ${GLIB_INCLUDE_DIRS}) target_link_libraries(donar-proxy ${GLIB_LDFLAGS}) install(TARGETS donar-proxy RUNTIME DESTINATION bin LIBRARY DESTINATION lib)