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

# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
# Perhaps define share/apps as ${DATA_INSTALL_DIR}
#set(CMAKE_MODULE_PATH "${KDEDIR}/share/apps/cmake/modules/ ${CMAKE_SOURCE_DIR}/cmake/modules")

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

9 10 11
# Always include srcdir and builddir in include path
set(CMAKE_INCLUDE_CURRENT_DIR ON)

Laurent Montel's avatar
Laurent Montel committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
# support for Dart: http://public.kitware.com/dashboard.php?name=kde
enable_testing()
include(CTest)

# search packages used by KDE
find_package(KDE4 REQUIRED)
find_package(Perl REQUIRED)
find_package(ZLIB REQUIRED)

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)

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 )

38
# for config.h and <toplevel/foo.h> includes (if any?)
39
include_directories( ${CMAKE_SOURCE_DIR}/lib/kofficecore/ ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
40 41 42

# TODO remove this (wrong order) once we have per-lib variables to use like in kdelibs.
include_directories( ${KDE4_INCLUDE_DIRS} )
Laurent Montel's avatar
Laurent Montel committed
43

44
add_subdirectory(libs)
Laurent Montel's avatar
Laurent Montel committed
45 46 47
#add_subdirectory(example)
add_subdirectory(interfaces)
#add_subdirectory(karbon)
48
add_subdirectory(kdgantt)
49
#add_subdirectory(kchart)
Laurent Montel's avatar
Laurent Montel committed
50 51 52 53
#add_subdirectory(kexi)
#add_subdirectory(kformula)
#add_subdirectory(kivio)
#add_subdirectory(koshell)
54
add_subdirectory(kounavail)
Laurent Montel's avatar
Laurent Montel committed
55 56 57 58 59 60
#add_subdirectory(kplato)
#add_subdirectory(kpresenter)
#add_subdirectory(krita)
#add_subdirectory(kspread)
#add_subdirectory(kugar)
#add_subdirectory(kword)
61
#add_subdirectory(ascend)
Laurent Montel's avatar
Laurent Montel committed
62 63
add_subdirectory(mimetypes)
add_subdirectory(pics)
64
add_subdirectory(plugins)
Laurent Montel's avatar
Laurent Montel committed
65 66
add_subdirectory(servicetypes)
add_subdirectory(templates)
67 68 69 70
add_subdirectory(tools)
add_subdirectory(filters)
add_subdirectory(autocorrect)
add_subdirectory(doc)
Laurent Montel's avatar
Laurent Montel committed
71 72 73 74 75
MESSAGE(STATUS "Perhaps not install FindKDE4. It will conflict when we install with rpm/deb package")
add_subdirectory( cmake )

kde4_create_doxygen_docs(  )