Skip to content

Commit

Permalink
fix include dir (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj authored Sep 25, 2023
1 parent 5d00149 commit 0d4e8ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ set(include_headers ${MARISA_ROOT}/include/marisa.h)
file(GLOB libmarisa_include_headers ${MARISA_ROOT}/include/marisa/*.h)
install(FILES ${include_headers} DESTINATION include)
install(FILES ${libmarisa_include_headers} DESTINATION include/marisa)
target_include_directories(marisa PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)

install(
EXPORT marisa-targets
Expand Down
2 changes: 1 addition & 1 deletion marisa-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

include(${CMAKE_CURRENT_LIST_DIR}/marisa-targets.cmake)

set_and_check(MARISA_INCLUDE_DIR @PACKAGE_CMAKE_INSTALL_INCLUDEDIR@/marisa)
set_and_check(MARISA_INCLUDE_DIR @PACKAGE_CMAKE_INSTALL_INCLUDEDIR@)

check_required_components(marisa)

0 comments on commit 0d4e8ab

Please sign in to comment.