# # rad/CMakeLists.txt -- # cmake_minimum_required(VERSION 2.6) project(RAD C) find_package(PkgConfig) pkg_check_modules(LIBEVENT REQUIRED libevent) include_directories(${LIBEVENT_INCLUDE_DIRS}) link_directories(${LIBEVENT_LIBRARY_DIRS}) add_executable(rad request.c peer.c tcp.c rad.c main.c) target_link_libraries(rad ${LIBEVENT_LIBRARIES}) set_property(SOURCE request.c APPEND PROPERTY COMPILE_FLAGS "--std=c99 -D_POSIX_SOURCE -Wall") set_property(SOURCE peer.c APPEND PROPERTY COMPILE_FLAGS "--std=c99 -D_POSIX_SOURCE -Wall") set_property(SOURCE tcp.c APPEND PROPERTY COMPILE_FLAGS "--std=c99 -D_POSIX_SOURCE -Wall") set_property(SOURCE rad.c APPEND PROPERTY COMPILE_FLAGS "--std=c99 -D_POSIX_SOURCE -Wall") set_property(SOURCE main.c APPEND PROPERTY COMPILE_FLAGS "--std=c99 -D_POSIX_SOURCE -Wall")