mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
binpac: Set installdirs using GNUInstallDirs module in CMake
This commit is contained in:
parent
1d750aa164
commit
2da5fecc16
2 changed files with 6 additions and 3 deletions
|
@ -4,6 +4,9 @@ include(cmake/CommonCMakeConfig.cmake)
|
|||
|
||||
file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" BINPAC_VERSION LIMIT_COUNT 1)
|
||||
|
||||
# Set default install paths
|
||||
include(GNUInstallDirs)
|
||||
|
||||
########################################################################
|
||||
## Dependency Configuration
|
||||
|
||||
|
|
|
@ -29,13 +29,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(TARGETS binpac_lib DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
if ( BRO_ROOT_DIR )
|
||||
# Installed in binpac subdir just for organization purposes.
|
||||
install(FILES ${binpac_headers} DESTINATION include/binpac)
|
||||
install(FILES ${binpac_headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/binpac)
|
||||
else ()
|
||||
install(FILES ${binpac_headers} DESTINATION include)
|
||||
install(FILES ${binpac_headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||
endif ()
|
||||
|
||||
# This is set to assist superprojects that want to build BinPac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue