Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/reports/CMakeLists.txt
1 | include_directories( | 1 | include_directories( | ||
---|---|---|---|---|---|
2 | ${CMAKE_SOURCE_DIR}/src/core | 2 | ${CMAKE_SOURCE_DIR}/src/core | ||
3 | ${CMAKE_SOURCE_DIR}/src/widget | 3 | ${CMAKE_SOURCE_DIR}/src/widget | ||
4 | ) | 4 | ) | ||
5 | 5 | | |||
6 | # the main plugin | 6 | # the main plugin | ||
7 | set(kexi_reportplugin_SRCS | 7 | set(kexi_reportplugin_SRCS | ||
8 | kexireports.cpp | 8 | kexireports.cpp | ||
9 | kexireportpart.cpp | 9 | kexireportpart.cpp | ||
10 | kexireportview.cpp | 10 | kexireportview.cpp | ||
11 | kexireportdesignview.cpp | 11 | kexireportdesignview.cpp | ||
12 | KexiDBReportDataSource.cpp | 12 | KexiDBReportDataSource.cpp | ||
13 | kexisourceselector.cpp | 13 | kexisourceselector.cpp | ||
14 | krscriptfunctions.cpp | 14 | krscriptfunctions.cpp | ||
15 | ) | 15 | ) | ||
16 | 16 | | |||
17 | if (KEXI_MOBILE) | 17 | if(SHOULD_BUILD_KEXI_DESKTOP_APP) | ||
18 | | ||||
19 | else () | | |||
20 | #TODO KEXI3 | 18 | #TODO KEXI3 | ||
21 | # list(APPEND kexi_reportplugin_SRCS | 19 | # list(APPEND kexi_reportplugin_SRCS | ||
22 | # keximigratereportdata.cpp | 20 | # keximigratereportdata.cpp | ||
23 | # ) | 21 | # ) | ||
24 | endif () | 22 | endif () | ||
25 | 23 | | |||
26 | #TODO KEXI3 qt5_wrap_cpp(kexi_reportplugin_SRCS ../scripting/kexiscripting/kexiscriptadaptor.h) | 24 | #TODO KEXI3 qt5_wrap_cpp(kexi_reportplugin_SRCS ../scripting/kexiscripting/kexiscriptadaptor.h) | ||
27 | 25 | | |||
28 | add_library(kexi_reportplugin MODULE ${kexi_reportplugin_SRCS}) | 26 | add_library(kexi_reportplugin MODULE ${kexi_reportplugin_SRCS}) | ||
29 | kcoreaddons_desktop_to_json(kexi_reportplugin kexi_reportplugin.desktop) | 27 | kcoreaddons_desktop_to_json(kexi_reportplugin kexi_reportplugin.desktop) | ||
30 | 28 | | |||
31 | target_link_libraries(kexi_reportplugin | 29 | target_link_libraries(kexi_reportplugin | ||
32 | PRIVATE | 30 | PRIVATE | ||
33 | kexiguiutils | 31 | kexiguiutils | ||
34 | kexiextendedwidgets | 32 | kexiextendedwidgets | ||
35 | 33 | | |||
36 | KReport | 34 | KReport | ||
37 | ) | 35 | ) | ||
38 | 36 | | |||
39 | if (KEXI_MOBILE) | 37 | if(SHOULD_BUILD_KEXI_DESKTOP_APP) | ||
40 | | ||||
41 | else () | | |||
42 | target_link_libraries(kexi_reportplugin | 38 | target_link_libraries(kexi_reportplugin | ||
43 | PRIVATE | 39 | PRIVATE | ||
44 | keximain | 40 | keximain | ||
45 | #TODO KEXI3 keximigrate | 41 | #TODO KEXI3 keximigrate | ||
46 | ) | 42 | ) | ||
47 | endif () | 43 | endif() | ||
48 | 44 | | |||
49 | install(TARGETS kexi_reportplugin DESTINATION ${KEXI_PLUGIN_INSTALL_DIR}) | 45 | install(TARGETS kexi_reportplugin DESTINATION ${KEXI_PLUGIN_INSTALL_DIR}) |