1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2 PROJECT(sensor-recorder)
3 INCLUDE(GNUInstallDirs)
5 SET(DEPS "glib-2.0 gio-2.0 dlog capi-base-common")
6 SET(INCDIR "context-service")
9 ${CMAKE_SOURCE_DIR}/include
10 ${CMAKE_SOURCE_DIR}/src/shared
13 ADD_DEFINITIONS(-O2 -Wall -fPIC -fdata-sections -ffunction-sections -fvisibility=hidden)
14 ADD_DEFINITIONS(-DLOG_TAG="CONTEXT-SENSOR")
15 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fPIC -Wl,--as-needed -Wl,--gc-section -Wl,--print-gc-section")
17 SET(VERSION ${FULLVER})
18 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
19 SET(PC_INCLUDE "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/${INCDIR}")
20 SET(PC_LIBDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
21 SET(PC_CFLAGS -I\${includedir}/${INCDIR})
24 DIRECTORY ${CMAKE_SOURCE_DIR}/include/
25 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${INCDIR}
26 FILES_MATCHING PATTERN "*.h"
29 ADD_SUBDIRECTORY(src/client-dummy)
30 ADD_SUBDIRECTORY(src/server-dummy)
31 ADD_SUBDIRECTORY(src/client)
32 ADD_SUBDIRECTORY(src/server)