ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE=1)
# Sub modules
+ADD_SUBDIRECTORY(include)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
+
ADD_SUBDIRECTORY(src/crash-manager)
IF("${SYS_ASSERT}" STREQUAL "ON")
--- /dev/null
+#ifndef __DEFS_H__
+#define __DEFS_H__
+
+#define CRASH_PATH "@CRASH_PATH@"
+#define CRASH_ROOT_PATH "@CRASH_ROOT_PATH@"
+#define CRASH_TEMP "@CRASH_TEMP@"
+#define SYS_ASSERT "@SYS_ASSERT@"
+#define CRASH_STACK_PATH "@CRASH_STACK_PATH@"
+#define CRASH_MANAGER_CONFIG_PATH "@CRASH_MANAGER_CONFIG_PATH@"
+#define MINICOREDUMPER_BIN_PATH "@MINICOREDUMPER_BIN_PATH@"
+#define MINICOREDUMPER_CONFIG_PATH "@MINICOREDUMPER_CONFIG_PATH@"
+#define DEBUGMODE_PATH "@DEBUGMODE_PATH@"
+
+#endif /* __DEFS_H__ */
+++ /dev/null
-/*
- * crash-manager
- *
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __CRASH_MANAGER_H__
-#define __CRASH_MANAGER_H__
-
-/* Make build variables to string */
-#define CRASH_PATH "@CRASH_PATH@"
-#define CRASH_ROOT_PATH "@CRASH_ROOT_PATH@"
-#define CRASH_TEMP "@CRASH_TEMP@"
-#define SYS_ASSERT "@SYS_ASSERT@"
-#define CRASH_STACK_PATH "@CRASH_STACK_PATH@"
-#define CRASH_MANAGER_CONFIG_PATH "@CRASH_MANAGER_CONFIG_PATH@"
-#define MINICOREDUMPER_BIN_PATH "@MINICOREDUMPER_BIN_PATH@"
-#define MINICOREDUMPER_CONFIG_PATH "@MINICOREDUMPER_CONFIG_PATH@"
-#define DEBUGMODE_PATH "@DEBUGMODE_PATH@"
-
-#endif