Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/scripting/kexiscripting/CMakeLists.txt
1 | add_definitions(-DKDE_DEFAULT_DEBUG_AREA=44025) | ||||
---|---|---|---|---|---|
2 | | ||||
3 | option(KEXI_SCRIPTING_DEBUG "Enable debugging for the scripting plugin" OFF) | ||||
4 | | ||||
1 | include_directories( | 5 | include_directories( | ||
2 | ${CMAKE_SOURCE_DIR}/src/core | 6 | ${CMAKE_SOURCE_DIR}/src/core | ||
3 | ${CMAKE_SOURCE_DIR}/src/widget | 7 | ${CMAKE_SOURCE_DIR}/src/widget | ||
4 | | ||||
5 | ${KOKROSS_INCLUDES} | | |||
6 | ) | 8 | ) | ||
7 | 9 | | |||
8 | # the main plugin | 10 | # the main plugin | ||
9 | set(kexi_scriptplugin_SRCS | 11 | set(kexi_scriptplugin_SRCS | ||
10 | kexiscriptpart.cpp | 12 | kexiscriptpart.cpp | ||
11 | kexiscripteditor.cpp | 13 | kexiscripteditor.cpp | ||
12 | kexiscriptdesignview.cpp | 14 | kexiscriptdesignview.cpp | ||
13 | ) | 15 | ) | ||
14 | 16 | | |||
17 | set(krossmodulekexidb_PART_SRCS | ||||
18 | ../kexidb/kexidbmodule.cpp | ||||
19 | ../kexidb/kexidbfield.cpp | ||||
20 | ../kexidb/kexidbfieldlist.cpp | ||||
21 | ../kexidb/kexidbschema.cpp | ||||
22 | ../kexidb/kexidbparser.cpp | ||||
23 | ../kexidb/kexidbcursor.cpp | ||||
24 | ../kexidb/kexidbconnectiondata.cpp | ||||
25 | ../kexidb/kexidbconnection.cpp | ||||
26 | ../kexidb/kexidbdriver.cpp ) | ||||
27 | | ||||
28 | | ||||
15 | qt5_wrap_cpp(kexi_scriptplugin_SRCS kexiscriptadaptor.h) | 29 | qt5_wrap_cpp(kexi_scriptplugin_SRCS kexiscriptadaptor.h) | ||
16 | 30 | | |||
17 | add_library(kexi_scriptplugin MODULE ${kexi_scriptplugin_SRCS}) | 31 | add_library(kexi_scriptplugin MODULE ${kexi_scriptplugin_SRCS} ${krossmodulekexidb_PART_SRCS}) | ||
18 | kcoreaddons_desktop_to_json(kexi_scriptplugin kexi_scriptplugin.desktop) | 32 | kcoreaddons_desktop_to_json(kexi_scriptplugin kexi_scriptplugin.desktop) | ||
19 | 33 | | |||
20 | target_link_libraries(kexi_scriptplugin | 34 | target_link_libraries(kexi_scriptplugin | ||
21 | PRIVATE | 35 | PRIVATE | ||
22 | kexiextendedwidgets | 36 | kexiextendedwidgets | ||
23 | kokross | | |||
24 | kexicore | 37 | kexicore | ||
25 | 38 | Qt5::Qml | |||
26 | KF5::KIOWidgets | 39 | KF5::KIOWidgets | ||
40 | KDb | ||||
41 | KF5::ConfigCore | ||||
42 | KF5::ConfigGui | ||||
27 | ) | 43 | ) | ||
28 | install(TARGETS kexi_scriptplugin DESTINATION ${KEXI_PLUGIN_INSTALL_DIR}) | 44 | install(TARGETS kexi_scriptplugin DESTINATION ${KEXI_PLUGIN_INSTALL_DIR}) |