diff --git a/unix/CMakeLists.txt b/unix/CMakeLists.txt index 0fd96e60..d85b19a5 100644 --- a/unix/CMakeLists.txt +++ b/unix/CMakeLists.txt @@ -202,6 +202,24 @@ if(GTK_FOUND) guiterminal eventloop otherbackends settings network charset utils puttyxpms ${GTK_LIBRARIES} ${X11_LIBRARIES}) + + add_executable(test_lineedit + ${CMAKE_SOURCE_DIR}/test/test_lineedit.c + ${CMAKE_SOURCE_DIR}/stubs/no-gss.c + ${CMAKE_SOURCE_DIR}/stubs/no-logging.c + ${CMAKE_SOURCE_DIR}/stubs/no-printing.c + ${CMAKE_SOURCE_DIR}/stubs/no-storage.c + ${CMAKE_SOURCE_DIR}/stubs/no-timing.c) + target_link_libraries(test_lineedit + guiterminal settings eventloop charset utils ${platform_libraries}) + + add_executable(test_terminal + ${CMAKE_SOURCE_DIR}/test/test_terminal.c + ${CMAKE_SOURCE_DIR}/stubs/no-gss.c + ${CMAKE_SOURCE_DIR}/stubs/no-storage.c + ${CMAKE_SOURCE_DIR}/stubs/no-timing.c) + target_link_libraries(test_terminal + guiterminal settings eventloop charset utils ${platform_libraries}) endif() # Pageant is built whether we have GTK or not; in its absence we @@ -226,21 +244,3 @@ target_link_libraries(pageant eventloop console agent settings network crypto utils ${pageant_libs}) installed_program(pageant) - -add_executable(test_lineedit - ${CMAKE_SOURCE_DIR}/test/test_lineedit.c - ${CMAKE_SOURCE_DIR}/stubs/no-gss.c - ${CMAKE_SOURCE_DIR}/stubs/no-logging.c - ${CMAKE_SOURCE_DIR}/stubs/no-printing.c - ${CMAKE_SOURCE_DIR}/stubs/no-storage.c - ${CMAKE_SOURCE_DIR}/stubs/no-timing.c) -target_link_libraries(test_lineedit - guiterminal settings eventloop charset utils ${platform_libraries}) - -add_executable(test_terminal - ${CMAKE_SOURCE_DIR}/test/test_terminal.c - ${CMAKE_SOURCE_DIR}/stubs/no-gss.c - ${CMAKE_SOURCE_DIR}/stubs/no-storage.c - ${CMAKE_SOURCE_DIR}/stubs/no-timing.c) -target_link_libraries(test_terminal - guiterminal settings eventloop charset utils ${platform_libraries})