1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2 PROJECT(crash-worker C)
4 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
6 ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE=1)
9 ADD_SUBDIRECTORY(include)
10 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/src/bugreport-service)
12 ADD_SUBDIRECTORY(src/crash-manager)
13 ADD_SUBDIRECTORY(src/crash-stack)
14 ADD_SUBDIRECTORY(src/dump_systemstate)
15 ADD_SUBDIRECTORY(src/crash-json2info)
17 IF("${LIVEDUMPER}" STREQUAL "ON")
18 ADD_SUBDIRECTORY(src/livedumper)
21 IF("${CRASH_SERVICE}" STREQUAL "ON")
22 if (NOT "${LIVEDUMPER}" STREQUAL "ON")
23 message(FATAL_ERROR "Livedumper is required to build bugreport-service")
25 ADD_SUBDIRECTORY(src/bugreport-service)
28 IF("${DUMP_SYSTEMSTATE_SERVICE}" STREQUAL "ON")
29 ADD_SUBDIRECTORY(src/dump_systemstate-service)
32 ADD_SUBDIRECTORY(tests)