2 ### Compile-time features
3 macro_optional_find_package(XKB)
4 macro_bool_to_01(X11_Xrender_FOUND HAVE_XRENDER)
5 macro_log_feature(XKB_FOUND "XKB" "X keyboard extension" "http://www.x.org" FALSE "" "Gives Konsole better keyboard support.")
7 configure_file (config-konsole.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-konsole.h )
10 add_subdirectory(tests)
14 set(fontembedder_SRCS fontembedder.cpp )
15 kde4_add_executable(fontembedder ${fontembedder_SRCS})
16 target_link_libraries(fontembedder ${KDE4_KIO_LIBS} )
18 ### Line graphics font
20 option(KONSOLE_GENERATE_LINEFONT "Konsole: regenerate LineFont file" OFF)
22 if(KONSOLE_GENERATE_LINEFONT)
23 add_custom_command(OUTPUT ${CMAKE_SOURCE_DIR}/LineFont.h
24 COMMAND ${CMAKE_CURRENT_BINARY_DIR}/fontembedder
25 ARGS ${CMAKE_SOURCE_DIR}/LineFont.src
26 DEPENDS ${CMAKE_SOURCE_DIR}/LineFont.src )
27 endif(KONSOLE_GENERATE_LINEFONT)
29 ### Konsole source files shared between embedded terminal and main application
31 qt4_add_dbus_adaptor( sessionadaptors_SRCS
32 org.kde.konsole.Session.xml
36 set(konsole_COMMON_SRCS
37 ${sessionadaptors_SRCS}
48 IncrementalSearchBar.cpp
50 KeyboardTranslator.cpp
51 ManageProfilesDialog.cpp
57 RemoteConnectionDialog.cpp
64 TabTitleFormatAction.cpp
65 TerminalCharacterDecoder.cpp
82 ${KDE4_KNOTIFYCONFIG_LIBRARY}
86 # XRender library for true transparency support
88 list(APPEND konsole_LIBS ${X11_Xrender_LIB})
89 endif(X11_Xrender_FOUND)
91 # doesn't seem to be needed
93 # list(APPEND konsole_LIBS ${X11_XTest_LIB})
94 # endif(X11_XTest_FOUND)
96 ### Konsole Application
98 set(konsole_KDEINIT_SRCS
99 ${konsole_COMMON_SRCS}
105 kde4_add_ui_files(konsole_KDEINIT_SRCS
110 ManageProfilesDialog.ui
111 RemoteConnectionDialog.ui
114 kde4_add_kdeinit_executable( konsole ${konsole_KDEINIT_SRCS})
115 target_link_libraries(kdeinit_konsole ${konsole_LIBS})
117 install(TARGETS kdeinit_konsole ${INSTALL_TARGETS_DEFAULT_ARGS} )
118 install(TARGETS konsole ${INSTALL_TARGETS_DEFAULT_ARGS})
120 ### Embedded Konsole KPart
122 set(konsolepart_PART_SRCS
123 ${konsole_COMMON_SRCS}
127 kde4_add_plugin(konsolepart WITH_PREFIX ${konsolepart_PART_SRCS})
128 set_target_properties(konsolepart PROPERTIES DEFINE_SYMBOL KONSOLE_PART)
129 target_link_libraries(konsolepart ${KDE4_KPARTS_LIBS} ${konsole_LIBS})
130 install(TARGETS konsolepart DESTINATION ${PLUGIN_INSTALL_DIR} )
132 ### konsoleprofile command-line tool
134 install(FILES konsoleprofile PERMISSIONS OWNER_READ
140 WORLD_EXECUTE DESTINATION ${BIN_INSTALL_DIR})