From 0d4e8ab58eec355facf8f65ff11ef811b330e373 Mon Sep 17 00:00:00 2001 From: Qijia Liu Date: Mon, 25 Sep 2023 00:19:08 -0400 Subject: [PATCH] fix include dir (#3) --- CMakeLists.txt | 4 ++++ marisa-config.cmake.in | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 49fda9c..d89d928 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 + $ + $ +) install( EXPORT marisa-targets diff --git a/marisa-config.cmake.in b/marisa-config.cmake.in index 4b1d486..7ae7939 100644 --- a/marisa-config.cmake.in +++ b/marisa-config.cmake.in @@ -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)