2022-06-07 00:45:02 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2022-07-26 03:12:59 +08:00
|
|
|
index 59e9b41..f0a162e 100644
|
2022-06-07 00:45:02 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2022-07-26 03:12:59 +08:00
|
|
|
@@ -215,7 +215,7 @@ list_source_directories(LIBHV_SRCS ${LIBHV_SRCDIRS})
|
2022-06-07 00:45:02 +08:00
|
|
|
if(BUILD_SHARED)
|
|
|
|
add_library(hv SHARED ${LIBHV_SRCS})
|
|
|
|
target_compile_definitions(hv PRIVATE HV_DYNAMICLIB)
|
|
|
|
- target_include_directories(hv PRIVATE ${LIBHV_SRCDIRS})
|
|
|
|
+ target_include_directories(hv PRIVATE ${LIBHV_SRCDIRS} INTERFACE $<INSTALL_INTERFACE:include>)
|
|
|
|
target_link_libraries(hv ${LIBS})
|
|
|
|
install(TARGETS hv
|
2022-07-26 03:12:59 +08:00
|
|
|
EXPORT libhvConfig
|
|
|
|
@@ -228,7 +228,7 @@ endif()
|
2022-06-07 00:45:02 +08:00
|
|
|
if(BUILD_STATIC)
|
|
|
|
add_library(hv_static STATIC ${LIBHV_SRCS})
|
|
|
|
target_compile_definitions(hv_static PRIVATE HV_STATICLIB)
|
|
|
|
- target_include_directories(hv_static PRIVATE ${LIBHV_SRCDIRS})
|
|
|
|
+ target_include_directories(hv_static PRIVATE ${LIBHV_SRCDIRS} INTERFACE $<INSTALL_INTERFACE:include>)
|
|
|
|
target_link_libraries(hv_static ${LIBS})
|
2022-07-26 03:12:59 +08:00
|
|
|
install(TARGETS hv_static
|
|
|
|
EXPORT libhvConfig
|