1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
4 SET(INSTALL_EXEC_PREFIX "${INSTALL_PREFIX}/bin")
5 SET(PROJECT_ROOT_DIR "${CMAKE_SOURCE_DIR}")
8 pkg_check_modules(pkgs REQUIRED
9 capi-appfw-service-application
17 FOREACH (flag ${pkgs_CFLAGS})
18 SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
21 SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden -Wall -Winline -g -fno-builtin-malloc -fPIE")
22 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
23 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")
25 CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/${P_NAME}.xml ${CMAKE_BINARY_DIR}/${ORG_PREFIX}.${P_NAME}.xml)
27 ADD_SUBDIRECTORY(tizen-things-daemon)
28 ADD_SUBDIRECTORY(workers)
31 INSTALL(FILES ${CMAKE_BINARY_DIR}/${ORG_PREFIX}.${P_NAME}.xml DESTINATION /usr/share/packages)