Last active
September 21, 2017 11:50
-
-
Save bozakov/26fbaabb2d94c25af69bf73977558f9e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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