Skip to content
Snippets Groups Projects
Commit 90d4ba94 authored by Stephen Hurd's avatar Stephen Hurd
Browse files

Fix up install target.

parent 6890942e
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,8 @@ set(SOURCE ...@@ -62,6 +62,8 @@ set(SOURCE
ripper.c ripper.c
) )
configure_file(syncterm.man.in syncterm.man)
file(ARCHIVE_CREATE OUTPUT syncterm.1.gz FORMAT raw COMPRESSION GZip PATHS syncterm.man)
add_executable(syncterm ${SOURCE}) add_executable(syncterm ${SOURCE})
target_link_libraries(syncterm cryptlib xpdevplus) target_link_libraries(syncterm cryptlib xpdevplus)
target_include_directories(syncterm PRIVATE ${CMAKE_BINARY_DIR}) target_include_directories(syncterm PRIVATE ${CMAKE_BINARY_DIR})
...@@ -79,8 +81,9 @@ if(NOT HAS_FORKPTY) ...@@ -79,8 +81,9 @@ if(NOT HAS_FORKPTY)
target_compile_definitions(syncterm PRIVATE NEEDS_DAEMON) target_compile_definitions(syncterm PRIVATE NEEDS_DAEMON)
endif() endif()
install(TARGETS syncterm DESTINATION bin) install(TARGETS syncterm RUNTIME)
if(UNIX) if(UNIX)
install(FILES syncterm.desktop DESTINATION share/applications) install(FILES syncterm.desktop DESTINATION share/applications)
install(FILES syncterm.png DESTINATION share/icons/hicolor/64x64/apps) install(FILES syncterm.png DESTINATION share/icons/hicolor/64x64/apps)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/syncterm.1.gz DESTINATION man/man1)
endif() endif()
...@@ -130,7 +130,7 @@ The curses and ANSI modes are not necessarily the correct number of lines for ...@@ -130,7 +130,7 @@ The curses and ANSI modes are not necessarily the correct number of lines for
a traditional screen mode. As such, filler will be added around the terminal a traditional screen mode. As such, filler will be added around the terminal
screen. For some display sizes, unpredictable results may occur. screen. For some display sizes, unpredictable results may occur.
.SH FILES .SH FILES
.IP \fC%%DESTDIR%%%%PREFIX%%/etc/syncterm.lst\fR .IP \fC@DESTDIR@@CMAKE_INSTALL_PREFIX@/etc/syncterm.lst\fR
The system wide dialing directory. The system wide dialing directory.
.IP \fC~/.syncterm/syncterm.lst\fR .IP \fC~/.syncterm/syncterm.lst\fR
The users dialing directory The users dialing directory
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment