CMakeLists.txt 3.52 KB
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1 2 3 4 5 6
project(koffice)

set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )

# search packages used by KDE
find_package(KDE4 REQUIRED)
7
include(KDE4Defaults)
Laurent Montel's avatar
Laurent Montel committed
8 9
find_package(Perl REQUIRED)
find_package(ZLIB REQUIRED)
Laurent Montel's avatar
Laurent Montel committed
10
macro_optional_find_package(OpenEXR)
Laurent Montel's avatar
Laurent Montel committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24

if (APPLE)
   find_package(Carbon REQUIRED)
endif (APPLE)


add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -DHAVE_CONFIG_H=1)
link_directories(${KDE4_LIB_DIR})


include (MacroAdditionalCleanFiles)
include (MacroAddFileDependencies)
include (ConfigureChecks.cmake)

Laurent Montel's avatar
Laurent Montel committed
25

Laurent Montel's avatar
Laurent Montel committed
26 27 28
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )
#macro_additional_clean_files( ${CMAKE_CURRENT_BINARY_DIR}/config.h )

29
# for config.h and <toplevel/foo.h> includes (if any?)
30 31 32
include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )

# kostore is at the bottom of stack, so it has the dependency on the kde4 includes.
33
set(KOSTORE_INCLUDES ${CMAKE_SOURCE_DIR}/libs/store ${CMAKE_BINARY_DIR}/libs/store ${KDE4_INCLUDES})
34
# kofficecore depends on kostore
35
set(KOFFICECORE_INCLUDES ${CMAKE_SOURCE_DIR}/libs/kofficecore ${CMAKE_BINARY_DIR}/libs/kofficecore ${KOSTORE_INCLUDES})
36 37 38 39 40 41 42 43 44 45 46 47
# kofficeui depends on kofficecore
set(KOFFICEUI_INCLUDES ${CMAKE_SOURCE_DIR}/libs/kofficeui ${CMAKE_BINARY_DIR}/libs/kofficeui ${KOFFICECORE_INCLUDES})

# The rest must be specified independently, in addition to one of the above three
set(KWMF_INCLUDES ${CMAKE_SOURCE_DIR}/libs/kwmf ${CMAKE_BINARY_DIR}/libs/kwmf)
set(KOTEXT_INCLUDES ${CMAKE_SOURCE_DIR}/libs/kotext ${CMAKE_BINARY_DIR}/libs/kotext)
set(KOPAINTER_INCLUDES ${CMAKE_SOURCE_DIR}/libs/kopainter ${CMAKE_BINARY_DIR}/libs/kopainter)
set(KOPALETTE_INCLUDES ${CMAKE_SOURCE_DIR}/libs/kopalette ${CMAKE_BINARY_DIR}/libs/kopalette)
set(KFORMULA_INCLUDES ${CMAKE_SOURCE_DIR}/libs/kformula ${CMAKE_BINARY_DIR}/libs/kformula)
set(KROSS_INCLUDES ${CMAKE_SOURCE_DIR}/libs/kross ${CMAKE_BINARY_DIR}/libs/kross)
# Those are included with e.g. <koproperty/set.h>
set(KOPROPERTY_INCLUDES ${CMAKE_SOURCE_DIR}/libs ${CMAKE_BINARY_DIR}/libs)
48

Laurent Montel's avatar
Laurent Montel committed
49
set(libkdgantt_SRCS
50
	${CMAKE_SOURCE_DIR}/kdgantt/KDGanttView.cpp
Laurent Montel's avatar
Laurent Montel committed
51 52 53 54 55 56 57 58 59 60 61 62 63 64
	${CMAKE_SOURCE_DIR}/kdgantt/KDGanttViewEventItem.cpp
	${CMAKE_SOURCE_DIR}/kdgantt/KDGanttViewItem.cpp
	${CMAKE_SOURCE_DIR}/kdgantt/KDGanttViewItemDrag.cpp
	${CMAKE_SOURCE_DIR}/kdgantt/KDGanttViewSubwidgets.cpp
	${CMAKE_SOURCE_DIR}/kdgantt/KDGanttViewSummaryItem.cpp
	${CMAKE_SOURCE_DIR}/kdgantt/KDGanttViewTaskItem.cpp
	${CMAKE_SOURCE_DIR}/kdgantt/KDGanttViewTaskLink.cpp
	${CMAKE_SOURCE_DIR}/kdgantt/KDGanttViewTaskLinkGroup.cpp
	${CMAKE_SOURCE_DIR}/kdgantt/KDGanttMinimizeSplitter.cpp
	${CMAKE_SOURCE_DIR}/kdgantt/KDGanttSemiSizingControl.cpp
	${CMAKE_SOURCE_DIR}/kdgantt/KDGanttSizingControl.cpp
	${CMAKE_SOURCE_DIR}/kdgantt/KDGanttXMLTools.cpp
	)

65
add_subdirectory(libs)
66
add_subdirectory(example)
Laurent Montel's avatar
Laurent Montel committed
67 68
add_subdirectory(interfaces)
#add_subdirectory(karbon)
69
add_subdirectory(kdgantt)
Laurent Montel's avatar
Laurent Montel committed
70
add_subdirectory(kchart)
71
#add_subdirectory(kexi)
72
add_subdirectory(kformula)
73
add_subdirectory(kivio)
Laurent Montel's avatar
Laurent Montel committed
74
add_subdirectory(koshell)
75
add_subdirectory(kounavail)
76
add_subdirectory(kplato)
Laurent Montel's avatar
Laurent Montel committed
77
#add_subdirectory(kpresenter)
78
add_subdirectory(krita)
Laurent Montel's avatar
Laurent Montel committed
79
add_subdirectory(kspread)
Laurent Montel's avatar
Laurent Montel committed
80
add_subdirectory(kugar)
81 82
add_subdirectory(kword)
add_subdirectory(ascend)
Laurent Montel's avatar
Laurent Montel committed
83 84
add_subdirectory(mimetypes)
add_subdirectory(pics)
85
add_subdirectory(plugins)
Laurent Montel's avatar
Laurent Montel committed
86 87
add_subdirectory(servicetypes)
add_subdirectory(templates)
88 89 90 91
add_subdirectory(tools)
add_subdirectory(filters)
add_subdirectory(autocorrect)
add_subdirectory(doc)
Laurent Montel's avatar
Laurent Montel committed
92
add_subdirectory( cmake )
93
message( STATUS "Re-add kpresenter,karbon,kexi when we will port them")
Laurent Montel's avatar
Laurent Montel committed
94 95 96

kde4_create_doxygen_docs(  )