2264146595b4bce94e0fbaf5a0fa275ed07c0ba4
[oonf.git] / src / libcore / CMakeLists.txt
1 # make sure that oonf_libdata is rebuild everytimes 
2 SET(GEN_DATA_C ${PROJECT_BINARY_DIR}/oonf_libdata.c)
3 configure_file (${CMAKE_CURRENT_SOURCE_DIR}/oonf_libdata.c.in ${GEN_DATA_C})
4
5 SET(OONF_CORE_SRCS oonf_cfg.c
6                    oonf_logging.c
7                    oonf_logging_cfg.c
8                    oonf_main.c
9                    oonf_subsystem.c
10                    ${GEN_DATA_C})
11
12 SET(OONF_CORE_INCLUDES oonf_appdata.h
13                        oonf_cfg.h
14                        oonf_logging.h
15                        oonf_logging_cfg.h
16                        oonf_main.h
17                        oonf_subsystem.h
18                        oonf_libdata.h
19                        os_core.h
20                        )
21
22 # add os_specific source(include files
23 # TODO: add BSD and WIN32
24 IF(LINUX)
25     SET(OONF_CORE_SRCS ${OONF_CORE_SRCS}
26                        os_generic/os_core_generic_syslog.c
27                        os_linux/os_core_linux.c
28                        )
29     SET(OONF_CORE_INCLUDES ${OONF_CORE_INCLUDES}
30                        os_generic/os_core_generic_syslog.h
31                        os_linux/os_core_linux.h
32                        )
33 ENDIF(LINUX)
34
35 SET(linkto_internal oonf_libcommon oonf_libconfig)
36
37 oonf_create_library("libcore" "${OONF_CORE_SRCS}" "${OONF_CORE_INCLUDES}" "${linkto_internal}" "rt")
38
39 # remove git commit cache entry
40 UNSET (OONF_LIB_GIT CACHE)