~ubuntu-branches/debian/sid/kexi/sid

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Pino Toscano
  • Date: 2017-06-24 20:10:10 UTC
  • Revision ID: package-import@ubuntu.com-20170624201010-5lrzd5r2vwthwifp
Tags: upstream-3.0.1.1
ImportĀ upstreamĀ versionĀ 3.0.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
 
2
 
 
3
option(KEXI_MOBILE "Compile a mobile version of Kexi" OFF)
 
4
 
 
5
check_function_exists("uname" HAVE_UNAME)
 
6
 
 
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)
 
9
 
 
10
# Extra GUI features
 
11
option(KEXI_AUTORISE_TABBED_TOOLBAR "Experimental: Autorise the main tabbed toolbar in Kexi" OFF)
 
12
 
 
13
# Experimental:
 
14
option(KEXI_SCRIPTS_SUPPORT "Experimental: Enable scripting in Kexi" ON)
 
15
 
 
16
# Broken:
 
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)
 
24
 
 
25
# Not available:
 
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.")
 
29
endif()
 
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.")
 
33
endif()
 
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.")
 
37
endif()
 
38
 
 
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)
 
41
 
 
42
add_definitions(-DTRANSLATION_DOMAIN=\"kexi\")
 
43
 
 
44
set(KEXI_PLUGIN_INSTALL_DIR ${PLUGIN_INSTALL_DIR}/kexi)
 
45
set(KEXI_FORM_WIDGETS_PLUGIN_INSTALL_DIR ${KEXI_PLUGIN_INSTALL_DIR}/forms/widgets)
 
46
 
 
47
 
 
48
#no default: add_definitions(-DKDE_DEFAULT_DEBUG_AREA=44010)
 
49
 
 
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)
 
52
 
 
53
include_directories(
 
54
  ${CMAKE_CURRENT_SOURCE_DIR}
 
55
  ${CMAKE_CURRENT_BINARY_DIR}
 
56
  ${CMAKE_CURRENT_BINARY_DIR}/core
 
57
)
 
58
 
 
59
add_subdirectory( kexiutils )
 
60
add_subdirectory( core )
 
61
add_subdirectory( widget )
 
62
add_subdirectory( data )
 
63
add_subdirectory( plugins )
 
64
if (BUILD_TESTING)
 
65
#TODO KEXI3 add_subdirectory( tests )
 
66
endif()
 
67
 
 
68
if(KEXI_MOBILE)
 
69
 
 
70
else()
 
71
  add_subdirectory( main )
 
72
  add_subdirectory( formeditor )
 
73
  add_subdirectory( migration )
 
74
endif()
 
75
 
 
76
########### next target ###############
 
77
 
 
78
if(KEXI_MOBILE)
 
79
  add_subdirectory( mobile )
 
80
else()
 
81
  set(kexi_SRCS
 
82
    main.cpp
 
83
    Messages.sh
 
84
 
 
85
    # non-source:
 
86
    ${CMAKE_SOURCE_DIR}/kundo2_aware_xgettext.sh
 
87
    Mainpage.dox
 
88
    Messages.sh
 
89
  )
 
90
  kexi_add_app_icons(kexi_SRCS)
 
91
  add_executable(kexi ${kexi_SRCS})
 
92
  target_link_libraries(kexi
 
93
    PRIVATE
 
94
      keximain
 
95
  )
 
96
  install(TARGETS kexi ${INSTALL_TARGETS_DEFAULT_ARGS})
 
97
endif()
 
98
 
 
99
add_subdirectory( pics )