Skip to content

Commit ad09039

Browse files
committed
Fix headers install, contrib headers should be installed.
1 parent 2e9ddcc commit ad09039

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/contrib/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ project(contrib)
33
####################################
44
# create library target
55
####################################
6+
add_subdirectory(include)
7+
68
if (LUCENE_BUILD_SHARED)
79
add_library(lucene++-contrib SHARED)
810
else()
@@ -92,4 +94,5 @@ install(TARGETS lucene++-contrib
9294
install(
9395
FILES ${contrib_headers}
9496
LIBRARY DESTINATION "include/lucene++"
97+
LIBRARY DESTINATION "src/contrib/include"
9598
COMPONENT development-contrib)

src/contrib/include/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
####################################
2+
# install headers
3+
####################################
4+
5+
file(GLOB_RECURSE lucene_headers
6+
"${CMAKE_CURRENT_SOURCE_DIR}/*.h"
7+
)
8+
9+
install(
10+
FILES ${lucene_headers}
11+
DESTINATION include/lucene++ )

0 commit comments

Comments
 (0)