--- lib/CMakeLists.txt
+++ lib/CMakeLists.txt
@@ -59,7 +59,10 @@
 if(HAVE_CUNIT OR ENABLE_STATIC_LIB)
   # Static library (for unittests because of symbol visibility)
   add_library(nghttp2_static STATIC ${NGHTTP2_SOURCES})
+  target_include_directories(nghttp2_static INTERFACE
+    ${CMAKE_CURRENT_BINARY_DIR}/includes
+    ${CMAKE_CURRENT_SOURCE_DIR}/includes)
   set_target_properties(nghttp2_static PROPERTIES
     COMPILE_FLAGS "${WARNCFLAGS}"
     VERSION ${LT_VERSION} SOVERSION ${LT_SOVERSION}
     ARCHIVE_OUTPUT_NAME nghttp2_static
