Skip to content

Commit

Permalink
Make wireshark plugin installation directory configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Apr 24, 2017
1 parent dbe674e commit faeb24f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wireshark_dissector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ project(ambit-wireshark-plugin C)
cmake_minimum_required(VERSION 2.6)
set(CMAKE_BACKWARDS_COMPATIBILITY 2.6)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set(CMAKE_INSTALL_LIBDIR ~/.wireshark)
set(CMAKE_INSTALL_WIRESHARKPLUGINSDIR ~/.wireshark
CACHE PATH "Where to install wireshark plugins")

INCLUDE(UseMakeDissectorReg)

Expand Down Expand Up @@ -80,6 +81,6 @@ set_target_properties(ws-ambit PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}")
target_link_libraries(ws-ambit ${WIRESHARK_LIBRARIES})

install(TARGETS ws-ambit
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/plugins NAMELINK_SKIP
LIBRARY DESTINATION ${CMAKE_INSTALL_WIRESHARKPLUGINSDIR} NAMELINK_SKIP
)

0 comments on commit faeb24f

Please sign in to comment.