Fix svace issue
[platform/core/context/context-service.git] / CMakeLists.txt
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
2 PROJECT(context-service)
3 INCLUDE(GNUInstallDirs)
4
5 ADD_DEFINITIONS(-O2 -Wall -fPIC -fPIE -fdata-sections -ffunction-sections -fvisibility=hidden)
6 ADD_DEFINITIONS(-fdiagnostics-color)
7 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fPIC -pie -Wl,--as-needed -Wl,--gc-sections -Wl,--print-gc-sections")
8 SET(CMAKE_VERBOSE_MAKEFILE OFF)
9
10 ADD_SUBDIRECTORY(src/server)
11 ADD_SUBDIRECTORY(src/agent)