mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
binpac: Changes to add an install target.
This commit is contained in:
parent
4644605860
commit
47c64d7fed
2 changed files with 7 additions and 3 deletions
|
@ -10,7 +10,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/binpac.h.in
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
${CMAKE_CURRENT_BINARY_DIR})
|
${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
||||||
set(binpac_LIB_SRCS
|
set(binpac_lib_SRCS
|
||||||
binpac_buffer.cc
|
binpac_buffer.cc
|
||||||
binpac_bytestring.cc
|
binpac_bytestring.cc
|
||||||
binpac.h
|
binpac.h
|
||||||
|
@ -21,4 +21,8 @@ set(binpac_LIB_SRCS
|
||||||
binpac_regex.h
|
binpac_regex.h
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(binpac_lib STATIC ${binpac_LIB_SRCS})
|
add_library(binpac_lib STATIC ${binpac_lib_SRCS})
|
||||||
|
|
||||||
|
set_target_properties(binpac_lib PROPERTIES OUTPUT_NAME binpac)
|
||||||
|
|
||||||
|
install(TARGETS binpac_lib DESTINATION lib)
|
||||||
|
|
|
@ -97,4 +97,4 @@ set(binpac_SRCS
|
||||||
|
|
||||||
add_executable(binpac ${binpac_SRCS})
|
add_executable(binpac ${binpac_SRCS})
|
||||||
|
|
||||||
target_link_libraries(binpac)
|
install(TARGETS binpac DESTINATION bin)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue