Skip to content

Commit ad1b310

Browse files
committed
fix: installation of scale_append
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
1 parent cf20755 commit ad1b310

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ install(TARGETS scale EXPORT scaleConfig
8888
FRAMEWORK DESTINATION ${CMAKE_INSTALL_PREFIX}
8989
)
9090

91+
install(TARGETS scale_append EXPORT scaleConfig
92+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
93+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
94+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
95+
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
96+
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
97+
FRAMEWORK DESTINATION ${CMAKE_INSTALL_PREFIX}
98+
)
99+
91100
install(
92101
DIRECTORY ${CMAKE_SOURCE_DIR}/include/scale
93102
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}

src/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ target_link_libraries(scale
2626
add_library(scale_append
2727
encode_append.cpp
2828
)
29+
target_include_directories(scale_append PUBLIC
30+
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include>
31+
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include>
32+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
33+
)
2934
target_link_libraries(scale_append
3035
scale
3136
)

0 commit comments

Comments
 (0)