Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
1 | include (CheckFunctionExists) | 1 | include (CheckFunctionExists) | ||
---|---|---|---|---|---|
2 | # FIXME: temporary | ||||
3 | remove_definitions(-DQT_NO_CAST_FROM_ASCII) | ||||
4 | # FIXME: temporary | ||||
5 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pedantic") | ||||
2 | 6 | | |||
3 | check_function_exists("strsignal" HAVE_STRSIGNAL) | 7 | check_function_exists("strsignal" HAVE_STRSIGNAL) | ||
4 | check_function_exists("uname" HAVE_UNAME) | 8 | check_function_exists("uname" HAVE_UNAME) | ||
5 | 9 | | |||
6 | if (NOT DEBUG_PACKAGE_INSTALLER_NAME) | 10 | if (NOT DEBUG_PACKAGE_INSTALLER_NAME) | ||
7 | set (DEBUG_PACKAGE_INSTALLER_NAME "installdbgsymbols.sh") | 11 | set (DEBUG_PACKAGE_INSTALLER_NAME "installdbgsymbols.sh") | ||
8 | endif () | 12 | endif () | ||
9 | 13 | | |||
10 | configure_file (config-drkonqi.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-drkonqi.h ) | 14 | configure_file (config-drkonqi.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-drkonqi.h ) | ||
11 | 15 | | |||
16 | add_subdirectory( bugzillaintegration/libbugzilla ) | ||||
12 | add_subdirectory( data ) | 17 | add_subdirectory( data ) | ||
13 | add_subdirectory( parser ) | 18 | add_subdirectory( parser ) | ||
14 | if ( WIN32 ) | 19 | if ( WIN32 ) | ||
15 | find_package(KDEWin REQUIRED) | 20 | find_package(KDEWin REQUIRED) | ||
16 | # for finding drkonqi_debug.h | 21 | # for finding drkonqi_debug.h | ||
17 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | 22 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | ||
18 | add_subdirectory( kdbgwin ) | 23 | add_subdirectory( kdbgwin ) | ||
19 | endif () | 24 | endif () | ||
Show All 37 Lines | 60 | set(drkonqi_SRCS | |||
57 | bugzillaintegration/bugzillalib.cpp | 62 | bugzillaintegration/bugzillalib.cpp | ||
58 | bugzillaintegration/reportassistantdialog.cpp | 63 | bugzillaintegration/reportassistantdialog.cpp | ||
59 | bugzillaintegration/reportassistantpage.cpp | 64 | bugzillaintegration/reportassistantpage.cpp | ||
60 | bugzillaintegration/reportassistantpages_base.cpp | 65 | bugzillaintegration/reportassistantpages_base.cpp | ||
61 | bugzillaintegration/reportassistantpages_bugzilla.cpp | 66 | bugzillaintegration/reportassistantpages_bugzilla.cpp | ||
62 | bugzillaintegration/reportassistantpages_bugzilla_duplicates.cpp | 67 | bugzillaintegration/reportassistantpages_bugzilla_duplicates.cpp | ||
63 | bugzillaintegration/reportinterface.cpp | 68 | bugzillaintegration/reportinterface.cpp | ||
64 | bugzillaintegration/productmapping.cpp | 69 | bugzillaintegration/productmapping.cpp | ||
65 | bugzillaintegration/parsebugbacktraces.cpp # Requires kxmlrpcclient | 70 | bugzillaintegration/parsebugbacktraces.cpp | ||
66 | bugzillaintegration/duplicatefinderjob.cpp | 71 | bugzillaintegration/duplicatefinderjob.cpp | ||
67 | ) | 72 | ) | ||
68 | ki18n_wrap_ui(drkonqi_SRCS | 73 | ki18n_wrap_ui(drkonqi_SRCS | ||
69 | bugzillaintegration/ui/assistantpage_introduction.ui | 74 | bugzillaintegration/ui/assistantpage_introduction.ui | ||
70 | bugzillaintegration/ui/assistantpage_bugawareness.ui | 75 | bugzillaintegration/ui/assistantpage_bugawareness.ui | ||
71 | bugzillaintegration/ui/assistantpage_conclusions.ui | 76 | bugzillaintegration/ui/assistantpage_conclusions.ui | ||
72 | bugzillaintegration/ui/assistantpage_conclusions_dialog.ui | 77 | bugzillaintegration/ui/assistantpage_conclusions_dialog.ui | ||
73 | bugzillaintegration/ui/assistantpage_bugzilla_login.ui | 78 | bugzillaintegration/ui/assistantpage_bugzilla_login.ui | ||
Show All 17 Lines | 93 | target_link_libraries(drkonqi | |||
91 | KF5::Service | 96 | KF5::Service | ||
92 | KF5::ConfigWidgets | 97 | KF5::ConfigWidgets | ||
93 | KF5::JobWidgets | 98 | KF5::JobWidgets | ||
94 | KF5::KIOCore | 99 | KF5::KIOCore | ||
95 | KF5::Crash | 100 | KF5::Crash | ||
96 | KF5::Completion | 101 | KF5::Completion | ||
97 | Qt5::DBus | 102 | Qt5::DBus | ||
98 | 103 | | |||
99 | KF5::XmlRpcClient | | |||
100 | KF5::WidgetsAddons | 104 | KF5::WidgetsAddons | ||
101 | KF5::Wallet | 105 | KF5::Wallet | ||
102 | 106 | | |||
103 | KF5::Notifications # for status notifier | 107 | KF5::Notifications # for status notifier | ||
104 | KF5::IdleTime # hide status notifier only if user saw it | 108 | KF5::IdleTime # hide status notifier only if user saw it | ||
105 | 109 | | |||
106 | drkonqi_backtrace_parser | 110 | drkonqi_backtrace_parser | ||
111 | qbugzilla | ||||
107 | ) | 112 | ) | ||
108 | if (${Qt5X11Extras_FOUND}) | 113 | if (${Qt5X11Extras_FOUND}) | ||
109 | target_link_libraries(drkonqi | 114 | target_link_libraries(drkonqi | ||
110 | Qt5::X11Extras | 115 | Qt5::X11Extras | ||
111 | ) | 116 | ) | ||
112 | endif() | 117 | endif() | ||
113 | if (APPLE) | 118 | if (APPLE) | ||
114 | target_link_libraries(drkonqi | 119 | target_link_libraries(drkonqi | ||
115 | KF5::WindowSystem | 120 | KF5::WindowSystem | ||
116 | ) | 121 | ) | ||
117 | endif() | 122 | endif() | ||
118 | 123 | | |||
119 | if (WIN32) | 124 | if (WIN32) | ||
120 | target_link_libraries(drkonqi kdewin) | 125 | target_link_libraries(drkonqi kdewin) | ||
121 | endif() | 126 | endif() | ||
122 | 127 | | |||
123 | install(TARGETS drkonqi DESTINATION ${KDE_INSTALL_LIBEXECDIR}) | 128 | install(TARGETS drkonqi DESTINATION ${KDE_INSTALL_LIBEXECDIR}) | ||
124 | configure_file(org.kde.drkonqi.desktop.cmake ${CMAKE_BINARY_DIR}/src/org.kde.drkonqi.desktop) | 129 | configure_file(org.kde.drkonqi.desktop.cmake ${CMAKE_BINARY_DIR}/src/org.kde.drkonqi.desktop) | ||
125 | install(PROGRAMS ${CMAKE_BINARY_DIR}/src/org.kde.drkonqi.desktop DESTINATION ${KDE_INSTALL_APPDIR}) | 130 | install(PROGRAMS ${CMAKE_BINARY_DIR}/src/org.kde.drkonqi.desktop DESTINATION ${KDE_INSTALL_APPDIR}) | ||
126 | 131 | | |||
132 | #add_subdirectory( tests ) | ||||
127 | 133 | | |||
128 | # Only go into tests once we have a drkonqi target so the tests can reference | 134 | add_subdirectory(bugzillaintegration/libbugzilla/autotests) | ||
129 | # it. | | |||
130 | add_subdirectory( tests ) | |