1
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
3
option(KEXI_MOBILE "Compile a mobile version of Kexi" OFF)
5
check_function_exists("uname" HAVE_UNAME)
7
option(KEXI_SHOW_UNFINISHED "Show unfinished features in Kexi. Thus is useful for testing but may confuse end-user." OFF)
8
option(KEXI_SHOW_UNIMPLEMENTED "Forces to show menu entries and dialogs just to give impression about development plans for Kexi. Only recommended for test/development versions." OFF)
11
option(KEXI_AUTORISE_TABBED_TOOLBAR "Experimental: Autorise the main tabbed toolbar in Kexi" OFF)
14
option(KEXI_SCRIPTS_SUPPORT "Experimental: Enable scripting in Kexi" ON)
17
option(KEXI_FORM_CURSOR_PROPERTY_SUPPORT "Broken: Enable \"cursor\" property in the form designer" OFF)
18
option(KEXI_SHOW_CONTEXT_HELP "Broken: Enable context help in Kexi main window" OFF)
19
option(KEXI_QUICK_PRINTING_SUPPORT "Broken: Enable print/print preview/print setup for tables/queries in the project navigator" OFF)
20
option(KEXI_AUTOFIELD_FORM_WIDGET_SUPPORT "Broken: Enable \"auto field\" form widget in the form designer" OFF)
21
# OFF because we need to replace it with QTreeWidget which uses very different API compared to Q3ListView. Re-add QTreeWidget?
22
option(KEXI_LIST_FORM_WIDGET_SUPPORT "Broken: Enable \"list\" form widget in the form designer" OFF)
23
option(KEXI_PIXMAP_COLLECTIONS_SUPPORT "Broken: Enable support for pixmap collections" OFF)
26
option(KEXI_MACROS_SUPPORT "Experimental: Enable macros in Kexi" OFF)
27
if(KEXI_MACROS_SUPPORT) # temp.
28
message(FATAL_ERROR "Macros are not yet available.")
30
option(KEXI_TABLE_PRINT_SUPPORT "Experimental: Enable printing of tabular view in Kexi" OFF) # broken since Kexi 2
31
if(KEXI_TABLE_PRINT_SUPPORT) # temp.
32
message(FATAL_ERROR "Table printing is not yet available.")
34
option(KEXI_PROJECT_TEMPLATES "Experimental: Enable support for project templates in Kexi" OFF) # broken since Kexi 2
35
if(KEXI_PROJECT_TEMPLATES) # temp.
36
message(FATAL_ERROR "Project templates are not yet available.")
39
#See commit 1e433a54cd9, left here for reference
40
#option(KEXI_SQLITE_MIGRATION "If defined, SQLite3 migration to some newer format is possible. Users can see a suitable question on app's startup." OFF)
42
add_definitions(-DTRANSLATION_DOMAIN=\"kexi\")
44
set(KEXI_PLUGIN_INSTALL_DIR ${PLUGIN_INSTALL_DIR}/kexi)
45
set(KEXI_FORM_WIDGETS_PLUGIN_INSTALL_DIR ${KEXI_PLUGIN_INSTALL_DIR}/forms/widgets)
48
#no default: add_definitions(-DKDE_DEFAULT_DEBUG_AREA=44010)
50
configure_file(config-kexi.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kexi.h )
51
configure_file(KexiVersion.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/KexiVersion.h)
54
${CMAKE_CURRENT_SOURCE_DIR}
55
${CMAKE_CURRENT_BINARY_DIR}
56
${CMAKE_CURRENT_BINARY_DIR}/core
59
add_subdirectory( kexiutils )
60
add_subdirectory( core )
61
add_subdirectory( widget )
62
add_subdirectory( data )
63
add_subdirectory( plugins )
65
#TODO KEXI3 add_subdirectory( tests )
71
add_subdirectory( main )
72
add_subdirectory( formeditor )
73
add_subdirectory( migration )
76
########### next target ###############
79
add_subdirectory( mobile )
86
${CMAKE_SOURCE_DIR}/kundo2_aware_xgettext.sh
90
kexi_add_app_icons(kexi_SRCS)
91
add_executable(kexi ${kexi_SRCS})
92
target_link_libraries(kexi
96
install(TARGETS kexi ${INSTALL_TARGETS_DEFAULT_ARGS})
99
add_subdirectory( pics )