cmake: Install headers

This commit is contained in:
Peter Wu 2016-02-11 23:27:31 +01:00
parent ea6eed10c7
commit ccd2d34160
3 changed files with 10 additions and 1 deletions

View File

@ -504,6 +504,10 @@ foreach(name
configure_file("${name}.in" "${name}" @ONLY) configure_file("${name}.in" "${name}" @ONLY)
endforeach() endforeach()
include_directories(
"${CMAKE_BINARY_DIR}" # for config.h
)
add_subdirectory(lib) add_subdirectory(lib)
#add_subdirectory(lib/includes) #add_subdirectory(lib/includes)

View File

@ -1,5 +1,6 @@
add_subdirectory(includes)
include_directories( include_directories(
"${CMAKE_BINARY_DIR}" # for config.h
"${CMAKE_CURRENT_SOURCE_DIR}/includes" "${CMAKE_CURRENT_SOURCE_DIR}/includes"
"${CMAKE_CURRENT_BINARY_DIR}/includes" "${CMAKE_CURRENT_BINARY_DIR}/includes"
) )

View File

@ -0,0 +1,4 @@
install(FILES
nghttp2/nghttp2.h
"${CMAKE_CURRENT_BINARY_DIR}/nghttp2/nghttp2ver.h"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/nghttp2")