Skip to content

Commit

Permalink
Merge pull request #84 from robert-scheck/cmake
Browse files Browse the repository at this point in the history
Use correct cmake GNUInstallDirs variables with their built-in defaults
  • Loading branch information
adulau authored Aug 16, 2023
2 parents e1796a8 + 44e963d commit de05391
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
cmake_minimum_required(VERSION 3.13.4)
include(CheckSymbolExists)

project(
ssldump
Expand All @@ -8,6 +7,9 @@ project(
LANGUAGES C
)

include(CheckSymbolExists)
include(GNUInstallDirs)

configure_file(base/pcap-snoop.c.in base/pcap-snoop.c)

set(SOURCES
Expand Down Expand Up @@ -110,8 +112,5 @@ target_link_libraries(ssldump
${JSONC_LIBRARIES}
)

set(CMAKE_INSTALL_PREFIX "/usr/local")
install(TARGETS ssldump DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)

set(CMAKE_INSTALL_MANDIR "/usr/local/share/man")
install(TARGETS ssldump DESTINATION ${CMAKE_INSTALL_BINDIR})
install(FILES ssldump.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)

0 comments on commit de05391

Please sign in to comment.