diff --git a/unix/CMakeLists.txt b/unix/CMakeLists.txt index 342ca14f..c2d5e2eb 100644 --- a/unix/CMakeLists.txt +++ b/unix/CMakeLists.txt @@ -19,14 +19,16 @@ add_sources_from_current_dir(utils utils/pollwrap.c utils/signal.c utils/x11_ignore_error.c - # Compiled icon pixmap files - putty-xpm.c - putty-config-xpm.c - pterm-xpm.c - pterm-config-xpm.c # We want the ISO C implementation of ltime(), because we don't have # a local better alternative ../utils/ltime.c) +# Compiled icon pixmap files +add_library(puttyxpms STATIC + putty-xpm.c + putty-config-xpm.c) +add_library(ptermxpms STATIC + pterm-xpm.c + pterm-config-xpm.c) add_sources_from_current_dir(eventloop cliloop.c uxsel.c) add_sources_from_current_dir(console @@ -152,7 +154,7 @@ if(GTK_FOUND) pty.c) be_list(pterm pterm) target_link_libraries(pterm - guiterminal eventloop settings charset utils + guiterminal eventloop settings charset utils ptermxpms ${GTK_LIBRARIES} ${X11_LIBRARIES}) installed_program(pterm) @@ -166,7 +168,7 @@ if(GTK_FOUND) pty.c) be_list(ptermapp pterm) target_link_libraries(ptermapp - guiterminal eventloop settings charset utils + guiterminal eventloop settings charset utils ptermxpms ${GTK_LIBRARIES} ${X11_LIBRARIES}) endif() @@ -176,7 +178,7 @@ if(GTK_FOUND) be_list(putty PuTTY SSH SERIAL OTHERBACKENDS) target_link_libraries(putty guiterminal eventloop sshclient otherbackends settings - network crypto charset utils + network crypto charset utils puttyxpms ${GTK_LIBRARIES} ${X11_LIBRARIES}) set_target_properties(putty PROPERTIES LINK_INTERFACE_MULTIPLICITY 2) @@ -190,7 +192,7 @@ if(GTK_FOUND) be_list(puttyapp PuTTY SSH SERIAL OTHERBACKENDS) target_link_libraries(puttyapp guiterminal eventloop sshclient otherbackends settings - network crypto charset utils + network crypto charset utils puttyxpms ${GTK_LIBRARIES} ${X11_LIBRARIES}) endif() @@ -204,5 +206,6 @@ if(GTK_FOUND) be_list(puttytel PuTTYtel SERIAL OTHERBACKENDS) target_link_libraries(puttytel guiterminal eventloop otherbackends settings network charset utils + puttyxpms ${GTK_LIBRARIES} ${X11_LIBRARIES}) endif()