diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f4c20a6..35da5f5d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -504,6 +504,10 @@ foreach(name configure_file("${name}.in" "${name}" @ONLY) endforeach() +include_directories( + "${CMAKE_BINARY_DIR}" # for config.h +) + add_subdirectory(lib) #add_subdirectory(lib/includes) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index d2dc019c..114749b1 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -1,5 +1,6 @@ +add_subdirectory(includes) + include_directories( - "${CMAKE_BINARY_DIR}" # for config.h "${CMAKE_CURRENT_SOURCE_DIR}/includes" "${CMAKE_CURRENT_BINARY_DIR}/includes" ) diff --git a/lib/includes/CMakeLists.txt b/lib/includes/CMakeLists.txt new file mode 100644 index 00000000..17de2ec6 --- /dev/null +++ b/lib/includes/CMakeLists.txt @@ -0,0 +1,4 @@ +install(FILES + nghttp2/nghttp2.h + "${CMAKE_CURRENT_BINARY_DIR}/nghttp2/nghttp2ver.h" + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/nghttp2")