specify PUBLIC_HEADER destination in bwclib target

avoids duplication of bwc.h in installation include/lib directories
This commit is contained in:
Gregor Weiss 2024-01-22 14:37:36 +01:00
parent 8174f30743
commit 9d85a8c8e2

View file

@ -117,8 +117,9 @@ target_link_libraries(bwclib PRIVATE m)
#*--------------------------------------------------------*#
# Setup the install directories. #
#*--------------------------------------------------------*#
install(FILES ${CMAKE_SOURCE_DIR}/include/library/public/bwc.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(TARGETS bwclib DESTINATION ${CMAKE_INSTALL_LIBDIR})
install( TARGETS bwclib
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
#*--------------------------------------------------------*#
# Define the output name for the BigWhoop library. #