~codygarver/+junk/ind-sess

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: Cody Garver
  • Date: 2014-04-03 17:08:08 UTC
  • Revision ID: cody@elementaryos.org-20140403170808-z56s93rorb1dzvmk
Initial import, version 12.10.5+14.04.20140324-0ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
add_subdirectory (backend-dbus)
 
2
 
 
3
add_library (libindicatorsessionservice STATIC
 
4
             actions.c
 
5
             actions.h
 
6
             guest.c
 
7
             guest.h
 
8
             service.c
 
9
             service.h
 
10
             users.c
 
11
             users.h)
 
12
include_directories(${SERVICE_INCLUDE_DIRS})
 
13
link_directories(${SERVICE_LIBRARY_DIRS})
 
14
 
 
15
set (SERVICE_EXEC "indicator-session-service")
 
16
set_property (SOURCE main.c
 
17
              APPEND PROPERTY COMPILE_DEFINITIONS
 
18
              GETTEXT_PACKAGE="${GETTEXT_PACKAGE}"
 
19
              GNOMELOCALEDIR="@CMAKE_INSTALL_FULL_LOCALEDIR@")
 
20
add_executable (${SERVICE_EXEC} main.c)
 
21
target_link_libraries (${SERVICE_EXEC} libindicatorsessionservice backenddbus ${SERVICE_LIBRARIES} ${GCOV_LIBS})
 
22
install (TARGETS ${SERVICE_EXEC} RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_PKGLIBEXECDIR})
 
23
 
 
24
# common properties
 
25
set_property (TARGET libindicatorsessionservice ${SERVICE_EXEC}
 
26
              APPEND_STRING PROPERTY COMPILE_FLAGS
 
27
              " -g ${CC_WARNING_ARGS} ${GCOV_FLAGS}")