1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
5 SET(EXEC_PREFIX "${PREFIX}/bin")
6 SET(LIBDIR "${PREFIX}/lib")
10 INCLUDE(FindPkgConfig)
11 pkg_check_modules(pkgs_lock_daemon REQUIRED
28 capi-appfw-application
30 FOREACH (flag ${pkgs_lock_daemon_CFLAGS})
31 SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
34 ADD_DEFINITIONS("-D_GNU_SOURCE")
35 ADD_DEFINITIONS(${EXTRA_CFLAGS})
36 ADD_LIBRARY(${PROJECT_NAME} SHARED
39 src/lockd-process-mgr.c
40 src/lockd-window-mgr.c
42 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include)
43 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
45 TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_lock_daemon_LDFLAGS})
46 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION lib)