Skip to content

Commit

Permalink
pull: Install header files for embedded civetweb
Browse files Browse the repository at this point in the history
Fixes: #479
  • Loading branch information
gjasny committed May 9, 2021
1 parent 37d7a5c commit 3d24cf1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/civetweb-3rdparty-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ add_library(civetweb OBJECT
${_IMPORT_PREFIX}/src/md5.inl
)

set_property(TARGET civetweb PROPERTY PUBLIC_HEADER
${_IMPORT_PREFIX}/include/CivetServer.h
${_IMPORT_PREFIX}/include/civetweb.h
)

target_compile_definitions(civetweb
PRIVATE
CIVETWEB_API=
Expand Down
2 changes: 2 additions & 0 deletions pull/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ if(USE_THIRDPARTY_LIBRARIES)
install(
TARGETS civetweb
EXPORT ${PROJECT_NAME}-targets
# keep embedded civetweb headers scoped to prometheus(-cpp)
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/prometheus
)
else()
find_package(civetweb CONFIG REQUIRED)
Expand Down

0 comments on commit 3d24cf1

Please sign in to comment.