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