Merge pull request #84 from robert-scheck/cmake

Use correct cmake GNUInstallDirs variables with their built-in defaults
This commit is contained in:
Alexandre Dulaunoy 2023-08-16 09:07:38 +02:00 committed by GitHub
commit de05391270
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,4 @@
cmake_minimum_required(VERSION 3.13.4) cmake_minimum_required(VERSION 3.13.4)
include(CheckSymbolExists)
project( project(
ssldump ssldump
@ -8,6 +7,9 @@ project(
LANGUAGES C LANGUAGES C
) )
include(CheckSymbolExists)
include(GNUInstallDirs)
configure_file(base/pcap-snoop.c.in base/pcap-snoop.c) configure_file(base/pcap-snoop.c.in base/pcap-snoop.c)
set(SOURCES set(SOURCES
@ -110,8 +112,5 @@ target_link_libraries(ssldump
${JSONC_LIBRARIES} ${JSONC_LIBRARIES}
) )
set(CMAKE_INSTALL_PREFIX "/usr/local") install(TARGETS ssldump DESTINATION ${CMAKE_INSTALL_BINDIR})
install(TARGETS ssldump DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
set(CMAKE_INSTALL_MANDIR "/usr/local/share/man")
install(FILES ssldump.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) install(FILES ssldump.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)