From d6bb25e1e0a25cb5aa781ac4f90b513fd5624f50 Mon Sep 17 00:00:00 2001 From: Gregor Burger Date: Tue, 20 Nov 2018 11:48:03 +0100 Subject: move all public headers to include/nng/ folder This change makes embedding nng + nggpp (or other projects depending on nng) in cmake easier. The header files are moved to a separate include directory. This also makes installation of the headers easier, and allows clearer identification of private vs public heade files. Some additional cleanups were performed by @gedamore, but the main credit for this change belongs with @gregorburger. --- src/supplemental/util/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/supplemental/util/CMakeLists.txt') diff --git a/src/supplemental/util/CMakeLists.txt b/src/supplemental/util/CMakeLists.txt index c61d8a09..64374d69 100644 --- a/src/supplemental/util/CMakeLists.txt +++ b/src/supplemental/util/CMakeLists.txt @@ -8,8 +8,9 @@ # found online at https://opensource.org/licenses/MIT. # -set(_SRCS supplemental/util/options.c supplemental/util/platform.c) -set(_HDRS supplemental/util/options.h supplemental/util/platform.h) +set(_SRCS supplemental/util/options.c + ${PROJECT_SOURCE_DIR}/include/nng/supplemental/util/options.h + supplemental/util/platform.c + ${PROJECT_SOURCE_DIR}/include/nng/supplemental/util/platform.h) set(NNG_SRCS ${NNG_SRCS} ${_SRCS} PARENT_SCOPE) -set(NNG_HDRS ${NNG_HDRS} ${_HDRS} PARENT_SCOPE) -- cgit v1.2.3-70-g09d2