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