Skip to content

Instantly share code, notes, and snippets.

@bozakov
Last active September 21, 2017 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bozakov/26fbaabb2d94c25af69bf73977558f9e to your computer and use it in GitHub Desktop.
Save bozakov/26fbaabb2d94c25af69bf73977558f9e to your computer and use it in GitHub Desktop.
# minimalistic CMakeLists.txt for a simple NEAT-based application
cmake_minimum_required(VERSION 3.8)
project(neat_proxy)
set(CMAKE_C_STANDARD 99)
# NEAT currently has dependencies on libuv, ldns, and jansson
FOREACH(LIB neat uv ldns jansson)
FIND_LIBRARY(LIBPATH ${LIB})
IF (LIBPATH)
MESSAGE(STATUS "${LIB} found in " ${LIBPATH})
ELSE()
MESSAGE(FATAL_ERROR "${LIB} not found")
ENDIF()
LIST(APPEND neat_libs ${LIBPATH})
ENDFOREACH()
set(SOURCE_FILES nproxy.c util.c)
add_executable(neat_proxy ${SOURCE_FILES})
target_link_libraries(neat_proxy ${neat_libs})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment