binpac: Install headers to alternate path as part of Bro sub-project

This commit is contained in:
Jon Siwek 2018-07-24 16:33:58 -05:00 committed by Tim Wojtulewicz
parent eea32ada6d
commit 721ea63a33

View file

@ -30,7 +30,13 @@ add_library(binpac_lib STATIC ${binpac_lib_SRCS})
set_target_properties(binpac_lib PROPERTIES OUTPUT_NAME binpac)
install(TARGETS binpac_lib DESTINATION lib)
install(FILES ${binpac_headers} DESTINATION include)
if ( BRO_ROOT_DIR )
# Installed in binpac subdir just for organization purposes.
install(FILES ${binpac_headers} DESTINATION include/binpac)
else ()
install(FILES ${binpac_headers} DESTINATION include)
endif ()
# This is set to assist superprojects that want to build BinPac
# from source and rely on it as a target